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