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.
- 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)
Please log in to answer
Posted by:
FrankSpierings
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.