/build/static/layout/Breadcrumb_cap_w.png

Setting Registry Permissions with InstallShield 2010..

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

Answers (3)

Posted by: anonymous_9363 12 years ago
Red Belt
0
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.
Posted by: Superfreak3 12 years ago
2nd Degree Black Belt
0
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.
Posted by: Arminius 12 years ago
Second Degree Green Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ