This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Prevent .NET config file being overwritten during install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 30, 2009
06:14 PM
Prevent .NET config file being overwritten during install
Hi
I'm using InstallShield 2010 Express to install a .NET WinForms app. The latest InstallShield project is a major upgrade, so I've used the Upgrade Paths section to allow upgrades from earlier versions of my app.
The problem is that config settings made during the initial install (written to Program Files\MyCompany\MyApp\myapp.exe.config) are being overwritten when installing the latest upgrade. This means that the user has to make all of the config settings again - not good.
In the InstallShield project, myapp.exe.config is set to use Windows Installer Versioning Rules. I've even tried setting the create/mod date of myapp.exe.config very old (1/1/1999) so that it shouldn't overwrite the file on the target system.
Other than this the installer works fine. Any ideas how I can prevent this file from being overwritten?
thanks
I'm using InstallShield 2010 Express to install a .NET WinForms app. The latest InstallShield project is a major upgrade, so I've used the Upgrade Paths section to allow upgrades from earlier versions of my app.
The problem is that config settings made during the initial install (written to Program Files\MyCompany\MyApp\myapp.exe.config) are being overwritten when installing the latest upgrade. This means that the user has to make all of the config settings again - not good.
In the InstallShield project, myapp.exe.config is set to use Windows Installer Versioning Rules. I've even tried setting the create/mod date of myapp.exe.config very old (1/1/1999) so that it shouldn't overwrite the file on the target system.
Other than this the installer works fine. Any ideas how I can prevent this file from being overwritten?
thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 19, 2009
12:50 AM
Since it is a Major Upgrade, it is going to remove the files installed by the earlier version. You need to make that file permanant in the earlier version. The option now you have will be to perform a backup of the file through a custom action and later restore it.