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


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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.
Answered 09/24/2007 by: FrankSpierings
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity