Hi,

Is there any way to have a ini file only be written and never removed 
even on rollback?

Here is the snippet
<Component Guid="[foosguid]" Id="foo.INI" Permanent="yes" 
NeverOverwrite="yes">
<IniFile Id="fooini" Action="createLine" Key="fookey" Name="foo.INI" 
Section="default" Value="[AVALUE]" Directory="FOO_DIR" />
<CreateFolder />
</Component>

I have tried both the default afterInstallValidate
<MajorUpgrade AllowDowngrades="yes" MigrateFeatures="no" />

and
<MajorUpgrade AllowDowngrades="yes" MigrateFeatures="no" 
Schedule='afterInstallFinalize' />

An uninstall does not remove the ini, which is desired, but if the user 
cancels late enough the rollback removes the ini.

The solution I am leaning towards is write out the ini with Windows 
Installer as a different extension then to copy the file as a ini then 
only execute this if the ini file does not exist. This should survive 
rollbacks, but if there is a built in way that would be great, maybe 
tweaking the rollback.  Any advice would be appreciated.

Thanks,
Sam
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to