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
- :
- Uninstall of product's earlier version deletes the keys for the new version
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
Dec 04, 2009
05:30 PM
Uninstall of product's earlier version deletes the keys for the new version
Hi,
I'm working on a defect in an Installshield script project that, unfortunately, has some older code. When I do the following:
Install FoobarProduct 1.0
Install FoobarProduct 1.1
Uninstall FoobarProduct 1.0
Problem:The uninstall deletes the keys for FoobarProduct 1.1.
I've tried to following the guidelines in the URL below, testing the existence of the key, disabling and enabling logging, etc, and have been able to stop the deletion for the keys under the CURRENT_USER hive, but I haven't been able to stop it in the LOCAL_MACHINE hive (it's the one with more subkeys).
Can anyone help me on this?
Thanks,
Ted
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?tpc=%2Frobo%2Fprojects%2Finstallshieldlivinghelp%2FISLivingHelpMain2.htm%3FRINoLog28301%3DT&mgr=agm&wnd=InstallShieldLivingHelp|Main&agt=wsm&ctxid=
I'm working on a defect in an Installshield script project that, unfortunately, has some older code. When I do the following:
Install FoobarProduct 1.0
Install FoobarProduct 1.1
Uninstall FoobarProduct 1.0
Problem:The uninstall deletes the keys for FoobarProduct 1.1.
I've tried to following the guidelines in the URL below, testing the existence of the key, disabling and enabling logging, etc, and have been able to stop the deletion for the keys under the CURRENT_USER hive, but I haven't been able to stop it in the LOCAL_MACHINE hive (it's the one with more subkeys).
Can anyone help me on this?
Thanks,
Ted
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?tpc=%2Frobo%2Fprojects%2Finstallshieldlivinghelp%2FISLivingHelpMain2.htm%3FRINoLog28301%3DT&mgr=agm&wnd=InstallShieldLivingHelp|Main&agt=wsm&ctxid=
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 07, 2009
07:47 AM
I had similar problems with earlier versions of InstallShield due to the way that InstallShield scripted projects delete keys that they create, regardless of whether other subkeys have been created outside the install.
We ended up writing a couple functions that saved the original key, then in OnFirstUIAfter, read through the saved key and restored any values that were no longer present. You might want to look at InstallSite.org for some scripting examples if you decide to go down that path.
We ended up writing a couple functions that saved the original key, then in OnFirstUIAfter, read through the saved key and restored any values that were no longer present. You might want to look at InstallSite.org for some scripting examples if you decide to go down that path.