Hi Bob and Brian,
I have Probl;em Reading value form IniFile using INIFileSearch, see the code
belcow.
here i want read value from inifile to property [SERVICELOCATION].
INIFIle (test.ini)
[Feature1]
Servicelocation=dbsevr
<Property Id="SERVICELOCATION">
<IniFileSearch Id="test" Name="test.ini" Section="Feature1"
Key="Servicelocation" Type="raw">
<DirectorySearch Id="StandardBuildIniDirSearch" Path="D:\" Depth="0">
<FileSearch Id="testid" Name="test.ini" />
</DirectorySearch>
</IniFileSearch>
</Property>
Please can u correct this it is unable to read value from inifile.
In Wix Users i found this but i am confused with
this(LongName="[MyDir]myfile.ini") syntax
Hey Ansuya,
I have not tried this out but am thinking this is what you are looking to
do.
<property id="SEARCH_INI">
<IniFileSearch id="MY_SEARCH_INI"
LongName="[MyDir]myfile.ini" Section="MySection" Key="MyKey" Type="raw"/>
</property>
Make sure that you test the property value after it has been set by the
action sequence.
Hope this helps; let me know!
On 8/14/07, Ansuya Negi <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for the reply.
> I tried to use just the condition message and it did not work. It only
> aborts installation if it can not find the ini file. This test was to
> check
> inside the ini file and read its contents via IniFileSearch. Am I using
> IniFileSearch correctly.
> This custom action again gives this error message (2723) even when I do it
> after InstallInitialize. The installation needs to be aborted if the value
> does not match.
> Ansuya
>
>
>
>
> Bob Arnson-2 wrote:
> >
> > Ansuya Negi wrote:
> >> DEBUG: Error 2723: Custom action CheckKey specifies unsupported type
> >> The installer has encountered an unexpected error installing this
> >> package.
> >> This may indicate a problem with this package. The error code is 2723.
> >>
> >> I have used,
> >> <CustomAction Id='CheckKey' Property='SEARCH_INI' Value="Test"
> >> Return='ignore' />
> >> <InstallExecuteSequence>
> >> <Custom Action='CheckKey' After='InstallFinalize'>NOT
> >> Installed</Custom>
> >> </InstallExecuteSequence>
> >>
> >
> > That definition sets a property as the installation finishes -- is that
> > what you're trying to do?
> >
> >> Do I have to put it before InstallInitialize.
> >>
> >
> > It depends -- what are you trying to do?
> >
> >> I have also another question. Can the same thing be achieved by (as the
> >> value of SERACH_INI is "Test":
> >> <Condition Message="You must have Check.ini file. Installation will
> now
> >> abort.">
> >> <![CDATA[SEARCH_INI <> "Test"]]>
> >> </Condition>
> >>
> >
> > Sounds like it -- have you tried it?
> >
> > --
> > sig://boB
> > http://joyofsetup.com/ <http://joyofsetup.com/>
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > <http://get.splunk.com/>
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > <https://lists.sourceforge.net/lists/listinfo/wix-users>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Condition-and-IniFileSearch-tf4251162.html#a12148268
> <http://www.nabble.com/Condition-and-IniFileSearch-tf4251162.html#a12148268>
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> <http://get.splunk.com/>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> <https://lists.sourceforge.net/lists/listinfo/wix-users>
>
--
Brian Rogers
"Intelligence removes complexity." - BR
-------------------------------------------------------------------------
Thanks & Regards,
Chandrashekar vuppala
IMPORTANT
1. This email and any attachments are confidential. Any unauthorised
dissemination or other use of these materials is prohibited. If received in
error, please contact us and delete all copies.
2. Before opening or using attachments, check them for viruses and
defects. Our liability is limited to resupplying any affected attachments.
3. Protecting your privacy is important to us. Our privacy statement and
further information is available at www.oakton.com.au.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users