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

Registry entries

Hi, our app needs to write some registry entries for our app's own use. Currently we write them to HKLM, but this of course would generating error if the app is installed by users other than administrators.

I set the Registry entries in InstallShield's IDE under Registry. So is there a way to set the entries in the IDE so that they falls to HKCU automatically instead of HKLM when the user installing is not an administrator? Or do I have to do it in InstallScript and write all the conditions and codes?

Thanks!
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

It's based on per-user vs. per-machine installations, but one option is to put registry keys under HKEY_USER_SELECTABLE, which resolves to either HKCU or HKLM.
0 Kudos
Darain
Level 6

doh...never notice there is a "HKEY_USER_SELECTABLE" section just at the bottom.

Just tried and it worked. Thanks!
0 Kudos