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
- :
- Re: Delete HKCR\Installer regkeys on Server 2008
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
‎Feb 05, 2009
02:13 PM
Delete HKCR\Installer regkeys on Server 2008
I am pretty new to this and I have inherited an Installshield project that doesn't seem to work as expected on Server 2008.
The Installer runs a bunch of SQL scripts against several databases and sets various options in those databses. Nothing is installed on the machine running the setup. We may run this install on the same server 10 times in a week to setup and configure different databases.
The installer has a custom action to delete the registry keys for the current install from HKCR\Installer. This was done so that the installer can be rerun on the same server without having to uninstall the old version (remember, nothing is actually being installed or changed on the machine running the install)
On Server 2000 the custom action (vbscript) would execute as expected and delete the appropriate keys. On Server 2008 I am getting an error that the key does not exist and can not be deleted (Even though I can see the key is created during the install).
Installer is run by a user with admin rights and I have checked the permissions on the keys in the registry and the user has delete rights. I can run the same vbscript used by the custom action after the install completes and the keys are deleted as expected.
Is there a way to get my installer to delete the keys OR uninstall instelf immediatly after running the install?
Thanks,
Dan
The Installer runs a bunch of SQL scripts against several databases and sets various options in those databses. Nothing is installed on the machine running the setup. We may run this install on the same server 10 times in a week to setup and configure different databases.
The installer has a custom action to delete the registry keys for the current install from HKCR\Installer. This was done so that the installer can be rerun on the same server without having to uninstall the old version (remember, nothing is actually being installed or changed on the machine running the install)
On Server 2000 the custom action (vbscript) would execute as expected and delete the appropriate keys. On Server 2008 I am getting an error that the key does not exist and can not be deleted (Even though I can see the key is created during the install).
Installer is run by a user with admin rights and I have checked the permissions on the keys in the registry and the user has delete rights. I can run the same vbscript used by the custom action after the install completes and the keys are deleted as expected.
Is there a way to get my installer to delete the keys OR uninstall instelf immediatly after running the install?
Thanks,
Dan
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2009
02:25 PM
Instead of deleting the undocumented registry keys, is it an option to "condition out" the actions that register the product on the system: RegisterProduct, RegisterUser, PublishProduct, and PublishFeatures?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2009
02:34 PM
I don't see why I can't do that. I'll look into it!
Update: This seems to have solved my problem!
Thanks,
Dan
Update: This seems to have solved my problem!
Thanks,
Dan
![](/skins/images/7674467D6278680F3FD526C8217C9173/responsive_peak/images/icon_anonymous_message.png)