When you say "never removed even on rollback", do you mean never removed on uninstall either?
If so, you can set your component's guid to an empty string. Meaning Windows Installer will not "manage" the component at all - so it won't be able to remove it. But Windows Installer also won't be able to repair it or patch it. (I don't know about upgrades, I guess they might just always overwrite the file) -----Original Message----- From: Sam Domonkos [mailto:s...@pfgltd.com] Sent: 20 January 2011 17:27 To: General discussion for Windows Installer XML toolset. Subject: Major Upgrade Rollbacks 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 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users