Update registry entry on uninstall
Posted 04 September 2014 - 15:50
I'm trying to update the registry settings for an application during uninstall. The registry entries are created on install and updated with properties populated by dialog or command line. A configuration file is also updated with the same settings.
I need to save the settings to the registry in order to persist the installation information so that dialog edit controls are pre-populated when users re-install the product. Unfortunately, we aren't doing proper upgrades at this time and this methodology keeps customers somewhat happy until we can incorporate a good upgrade process.
I've created a component to update the registry on uninstall with values that are gathered from the configuration file. I need to do this to be sure to collect and save accurate config info in the case that the config file has been modified.
On uninstall properties are being populated with the updated config settings, I've validated this via the uninstall log file. However, the component that should be applied on uninstall and update the registry with the new settings is not being applied. I've added condition "REMOVE~="All"" to the component.
I'm using Installshield 2012 Spring.
Any ideas would be appreciated!
Edited by T5_Driver, 04 September 2014 - 15:51.
Posted 04 September 2014 - 15:57
Ok, I was hoping that having the component set to "Permanent" would allow the update to take place.