lwinkenb
asked on
Changing registry key for HKEY_USERS
I need to change a registry key that is in HKEY_USERS.
On my computer, the subdirectory that this key is in is:
HKEY_USERS/S-1-5-21-448539 723-205211 1302-83952 2111-1003/ Software/A pp/
Now Im guessing the part that goes S-1-5-21-448539723-2052111 302-839522 111-1003 is different machine to machine. How can I change a registry key for this app if I dont know the subdirectory it is going to be in before-hand?
On my computer, the subdirectory that this key is in is:
HKEY_USERS/S-1-5-21-448539
Now Im guessing the part that goes S-1-5-21-448539723-2052111
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks nonubik, I didnt realize that HKEY_USERS was the same as the keys in HKEY_CURRENT_USER. That solves that problem :)
RegEnumKey(Ex)
and look inside all found keys if there is a subkey Software/App
If yes change to that key and change its value