No, it's not in the windows folder. It's in program files\my company\myapp Does it have to be in Windows for inifilesearch to work? I thought the directorysearch element told it where to look?
-----Original Message----- From: "Alex Shevchuk" <shevc...@live.com> To: "'General discussion for Windows Installer XML toolset.'" < wix-users@lists.sourceforge.net> Date: Tue, 21 Jul 2009 16:45:36 -0700 Subject: Re: [WiX-users] inifilesearch doesn't execute Hi Eric, Are you sure that msi.ini file is in the default windows folder? Alex -----Original Message----- From: Eric Napier [mailto:napi...@gmail.com] Sent: Tuesday, July 21, 2009 3:34 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] inifilesearch doesn't execute I'm having a problem with an ini file search. I'm trying to disallow installation based on the presence of a value in an ini file. However, OLDVALUE (the item for which I'm searching) is never set. I've confirmed the presence of the item in the ini file. The path is correct. Examining the log, I can find no evidence of this search running. Can you tell what I'm doing wrong? My code below. Thanks <Property Id="OLDVALUE"> <IniFileSearch Id="OldValueSearch" Section="Installer" Key="OldValue" Name="msi.ini" Type="directory"> <DirectorySearch Id="OldIniSearch" Depth="0" Path="c:\program files\mycompany\myapp"/> </IniFileSearch> </Property> <!-- Do not proceed if an old value was found, unless this is an uninstallation.--> <Condition Message="Old value was found. Stopping installation.">(REMOVE ~= "ALL") OR (OLDVALUE="")</Condition> ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users