Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Uninstall app as Admin fails to remove registry keys for User

Featured Replies

Not sure if this is the rigth forums for this but here goes....

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.


Why not give temporary admin rights to user and proceed as such ? ((( what you want to achieve is not very clear :blushing: )))

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?

The problem with removing registry keys for another user when that user isn't doing the uninstall is that you don't necessarily have easy access to their registry (ntuser.dat). You could either write a script that loaded up everyone's ntuser.dat file, parsed the registry for the correct location to the reg keys you wanted to delete, and deleted them; or, you would have to parse all of the subkeys under HKEY_USERS to find the keys you are looking for. Note that neither approach is 100% foolproof, and that's why (in most cases) uninstallers only remove reg values from the HKCU hive for the user doing the uninstall, and everyone else's reg values (if they exist for the app) are untouched.

http://support.citrix.com/forums/thread.js...4&tstart=30

http://groups.google.com/group/microsoft.p...=raot&fwc=1

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.