Hi all,

I'm just wondering if or how I set permissions on an HKLM key for Read rights for Everyone. Is that possible?

Also, is it possible to set Write permissions on an HKLM key and have our app tweak that in, lets say, the Windows 7 world. Or would the app have to be running as Admin to tweak those keys.

What I'm exploring is storring some information in an HKLM key, All users that use the app could either read and write to that or we would change our app to copy the HKLM values to HKCU.

Any tips, hlep, info appreciated!
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


If you're a masochist, use the lockPermissions table. If not, use SetACL/SubInACL/XCACLS in a Custom Action.

For safety, I'd probably plump for creating the keys in HKLM in the installer and then copying them to HKCU in the app.
Answered 12/08/2011 by: VBScab
Red Belt

Please log in to comment
I'm guessing that the InstallShield Registry interface acts on the lockPermissions table, but I haven't played with it yet. I don't know how to enter the user so that Everyone has at least Read access.

I'll check out the alternatives you mentioned.

Yes, my goal is to push all HKCU stuff to be derived from HKLM by the app.
Answered 12/08/2011 by: Superfreak3
Black Belt

Please log in to comment
That sounds like a challenging way to recreate what an advertised shortcut will do. Rather than copying HKLM info, put the reg keys in a component that your advertised shortcut covers. First time the user runs the app, it will set up. Lots easier than setting permissions and copying keys when the MSI's logic will do that for you.
Answered 12/08/2011 by: Arminius
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity