The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing to S-1-5-21-XXXXXX\Software\ ?

BCM4309
By
Level 8
I have a program that creates and looks for user specific data in the following registry branch (it does not pay attention to HKEY_CURRENT_USER):

HKEY_USERS\S-1-5-21-XXXXXXXXX-etc\Software\

Is there anyway to write to that key when the software is installed? Also if I can write to that key, will whatever I write apply to ALL / CURRENT USERS of that machine?

Thanks,

Bryan
(2) Replies

MarcoHeineck
By
Level 5
Hi,

Copying it to HKEY_current_user should do the trick unless you are actually writing to another user's profile.

You could always use the UserSID Property such as HKEY_USERS\[UserSID]\Software , but that effectively will end up in HKCU for the current user as it is just a copy.

Set a unique HKCU registry entry as the key path for your component and you are all set to support all user installs.

Marco

BCM4309
By
Level 8
MarcoHeineck,

THANKS!!! Works great!!!

Bryan