Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Uninstall registry keys from Users hive


1 reply to this topic

JoderCoder

JoderCoder
  • Full Members
  • 1 posts

Posted 04 November 2009 - 02:10

Our application, at run time, write some keys to HKCU. We would like to remove those keys at uninstall time.

The tricky part is that multiple users might run the app which means that registry keys will be created under each users HKCU. Furthermore, uninstall can be performed by admin silently using some deployment utility. How would it be possible to remove the registry from each users hive?

Each user has a hive under HKEY_USERS\<SomeGUID>\Software. In theory it should be possible to remove the reg keys once you know the GUIDs. Is there any InstallShield smart way of doing this?

If not, the only option I can think off is to loop through the reg keys under HKEY_USERS, as always, in a custom action. It would be excellent if one has written a (C++) custom action for that already.

Thanks!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 November 2009 - 14:43

In the Installcript samples section there's a DLL (with source code) that may help you:
Load a User Hive Under the HKEY_USERS Key
http://www.installsi...eg.htm#UserHive

Alternatively, a login script might work as well.