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: Creating a registry entry that persists after uninstall
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
‎Oct 15, 2009
03:21 PM
Creating a registry entry that persists after uninstall
I have a basic MSI project. I'd like to create a registry key that my installed program will use later, and set permissions to the key so my program can use it without elevation. I want to do it during install so I can avoid elevation issues (as the installer runs elevated). I also do not want the key uninstalled if the user unistalls my program.
1- can I use a scripted method to turn off logging of the key creation in a Basic MSI project?
2- Can I turn off logging of the key creation in the UI?
3- Is there another way I can accomplish this?
Thanks
1- can I use a scripted method to turn off logging of the key creation in a Basic MSI project?
2- Can I turn off logging of the key creation in the UI?
3- Is there another way I can accomplish this?
Thanks
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 15, 2009
03:39 PM
I can help with a portion of this. Since Basic MSI follows MSI conventions, you can leave the registry file behind on the installation machine.
Simply click on the component that the registry is installed with and right click on it, go to properties and check the box labeled "Permanent."
As for anything else, custom actions in a MSI are (by my understanding) not logged for uninstall. If you want to ensure that though, you can use the scripting command:
Disable(LOGGING);
and then enabling it after you're finished.
Simply click on the component that the registry is installed with and right click on it, go to properties and check the box labeled "Permanent."
As for anything else, custom actions in a MSI are (by my understanding) not logged for uninstall. If you want to ensure that though, you can use the scripting command:
Disable(LOGGING);
and then enabling it after you're finished.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 15, 2009
09:43 PM
Try making the component which contains the registry as permanent as James mentioned, so that it will not get removed during uninstall.
To set the permissions for the reg keys, try using the lockpermission table. Alternatively you may try setting the permission using a 'cacls' command in a custom action. Set the custom action as deferred.
To set the permissions for the reg keys, try using the lockpermission table. Alternatively you may try setting the permission using a 'cacls' command in a custom action. Set the custom action as deferred.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2009
02:08 AM
You can also right-click the key and select "permissions".
Stefan Krueger
InstallSite.org
InstallSite.org