Replies: 2 comments 2 replies
-
But then you have another problem... you'll lose the updates that your application put in the app.config. Easiest solution exists outside of the installer. Don't write to the app.config. Instead write to an override.app.config and have your code use the original app.config as default values and override.app.config as override values. This way date create / date modification stay the same and MSI always overwrites the app.config automatically. In fact, you'll see the appSettings element already has a @file attribute to make this super easy. |
Beta Was this translation helpful? Give feedback.
-
What if you make sure to reset the Created and Modified date/time on the config file are set the same after making changes? Then the Windows Installer should upgrade the file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
New to WiX project installer, be gentle :)
Below is an example of the files I am including into my installer file (this is a Windows application)
I want to force overwrite of the app.config file. Our application updates the app.config, and if the file has been modified the installer will not replace it with that from the MSI file.
Can this be done? If so, how?
Many thanks.
James
Beta Was this translation helpful? Give feedback.
All reactions