installer - Wix major upgrade -


How do I use WIX to overwrite a config file during 'megul upgrade'?

I want to leave the file installed on the initial installation, removed on uninstallation, and unchanged on 'major upgrade'.

Thanks

InstallExecute or InstallFinalize after scheduling your RemoveExistingProducts most directly to schedule This way the config file will not be removed and will be installed again (like you schedule before InstallInitialize). Of course, removeExistingProduct scheduling means so late that you should be very careful about your component rules.

My personal favorite is to treat such configurations as "user data" and it is not at all to install it. You default with the application but any change is made by the user in his personal user profile. Exits all kinds of incorrect migration issues that are not resolved properly during setup.


Comments