- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: InstallShield 2019 uninstalls entire registry key with 2 programs
- 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
Hello,
I have multiple installshield programs that write to the same registry keys in HKEY_LOCAL_MACHINE when installing the programs.
HKEY_LOCAL_MACHINE\TestApp -> Program #1
->Program #2
On previous InstallShield setups, the uninstall would only delete Program #2 and leave the TestApp key.
Now, if I uninstall either Program #1 or Program #2 via the remove option in setup.exe, it removes the entire tree starting at HKEY_LOCAL_MACHINE\TestApp
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Write custom action in Installscript to create the registry keys and use Disable(LOGGING) - Enable(LOGGING) functions. It will not remove your registry entries after uninstallation.
Thanks,
Thananjeyan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thanks for the suggestion and feedback.
I created a SetRegistryKey function as suggested to manually set all my registry keys which gets called after the Finish Button is clicked.
Disable(LOGGING);
SetRegistryKey();
Enable(LOGGING);
When the program is now uninstalled, I created a function called RemoveRegistryKey() called from OnEnd() event to remove the keys created by SetRegistryFunction.
function OnEnd
begin
RemoveRegistryKey();
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Write custom action in Installscript to create the registry keys and use Disable(LOGGING) - Enable(LOGGING) functions. It will not remove your registry entries after uninstallation.
Thanks,
Thananjeyan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thanks for the suggestion and feedback.
I created a SetRegistryKey function as suggested to manually set all my registry keys which gets called after the Finish Button is clicked.
Disable(LOGGING);
SetRegistryKey();
Enable(LOGGING);
When the program is now uninstalled, I created a function called RemoveRegistryKey() called from OnEnd() event to remove the keys created by SetRegistryFunction.
function OnEnd
begin
RemoveRegistryKey();
end;