Gregory Coburn
Gregory Coburn

Reputation: 73

Wix Not overwriting my app.config

Hi everyone i'm using wix to install my current application and it successfully installs everything and the initial version of the installer has NeverOverwrite="yes" in the installer but in a future version I realized that i can overwrite it everytime but when i remove the NeverOverwrite attribute in the future version of the installer it doesn't overwrite the configuration. Do i have to change the guid or do a major upgrade to get the configuration file to get updated with the latest version of my installer?

Upvotes: 0

Views: 719

Answers (1)

user1548266
user1548266

Reputation:

When performing an upgrade the installer only replaces assemblies and associated files of assemblies that have changed from the current installation.

App.config files are associated with particular executable assemblies, which, if it has not had its version number increased in any way will not be updated on the installation machine (as the installer detects no change in version numbers).

You could either increase the version number of the executable associated with the app.config file, or use Orca to forcefully overwrite the app.config.

Upvotes: 1

Related Questions