[wix-users] Prevent removing ini values ONLY during the UNINSTALL
shubhamjain1713 at gmail.com
Tue Mar 7 04:04:02 PST 2017
Please check the below link. It may help you.
On Tue, Mar 7, 2017 at 4:04 AM, Tigran Galoyan <tigran.galoyan at gmail.com>
> I'm having trouble making this work:
> *<Directory Id="INIDIR" Name="Ini">*
> *<Component Id="Ini" Guid='780D972E-66AE-4B24-A548-C108C26B0F6A' >*
> *<CreateFolder />*
> *<IniFile Id="IniID" Action="removeLine" Key="InstallDir" Name="My.ini"
> Section="Paths" Directory="INIDIR"/>*
> When I *INSTALL *the InstallDir key/value pair entry is removed from the
> existing My.ini file if it exists there. However, during *UNINSTALL *all
> other INI parameters are also removed from My.ini file and apparently it
> also deletes the file itself. Then I added the following:
> *<RemoveIniValues Suppress="yes">(NOT UPGRADINGPRODUCTCODE) AND
> It helps by preventing the removal of all my INI entries during uninstall,
> however, my removeLine action declaration in order to remove a
> particular INI setting no longer works, as removal of INI settings is
> suppressed, even though I explicitly put a condition to suppress INI value
> removal only for uninstall, still it affects install as well.
> Any help is much appreciated.
> WiX Toolset Users Mailing List provided by FireGiant
More information about the wix-users