/build/static/layout/Breadcrumb_cap_w.png

Uninstall app as Admin fails to remove registry keys for User

Here is my scenario:

- I install an app as Admin that contains registry keys to be written in the HKCU key.
- Then I run the app as User which causes the app to self-repair to write the HKCU registry data for User
- I then uninstall the app as Admin

The problem is that the HKCU entries for User remain upon uninstall of the app.

How can I ensure all HKCU registry entries for User are removed when Admin uninstalls the app?

From my research it seems that I should be able to accomplish this with either the RemoveRegistry or Registry tables by specifiying the full path to the keys I need to delete. However as the uninstall is running as Admin it seems I would need to specify the removal of the User keys from HKEY_USERS but how I would not know the correct path for the key?

Thanks in advance.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: FrankSpierings 17 years ago
Orange Senior Belt
0
You can't and you shouldn't try.

Although you could do a per-user installation (though you need to set AlwaysInstallElevated policy). Than you can also do a per-user removal, which makes it possible to remove those keys.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ