What is the meaning of HKEY_USER_SELECTABLE?
Hello, All.
I have package that has entries in HKEY_USER_SELECTABLE. Is this the same with HKCU/HKU registries?
Is there any best practice for this when deploying the application in System Context?
What should I do to this HKEY_USER_SELECTABLE?
Thanks.
Answers (1)
From http://kb.flexerasoftware.com/doc/Helpnet/installshield12helplib/IHelpRegHK_USER_SELECTABLE.htm
When you select HKEY_USER_SELECTABLE in the Registry view, the entries are created under the appropriate registry hive, according to the type of installation and the user's access rights. In a per-user installation, which means that the ALLUSERS property is set to 2 or that the installation is being run by someone with user-level access privileges, these entries would be made under HKEY_CURRENT_USER. In a per-machine installation, which means that ALLUSERS is not null and that the user is an administrator, the entries would be written under HKEY_LOCAL_MACHINE.
Comments:
-
Just to confirm my understanding.
Sample hive: HKEY_USER_SELECTABLE\Software\Microsoft\VendorName\AppName\Key.
If my package has a property of ALLUSERS = 1 and it will be installed through system context then the HKEY_USER_SELECTABLE\Software\Microsoft\VendorName\AppName\Key will install in HKLM\Software\Microsoft\VendorName\AppName\Key?
Is it correct? - ajcbasilio 11 years ago-
Yes, that would be correct. - andemats 11 years ago
-
Therefore if the vendor msi has HKEY_USER_SELECTABLE\Software\Microsoft\VendorName\AppName\Key is it okay to move this registry to HKLM directly though I set the ALLUSERS=1? - ajcbasilio 11 years ago