/build/static/layout/Breadcrumb_cap_w.png

Setting registry permissions in msi

How do I set registry permissions in an msi ?

I am trying to create a package using Wininstall LE, Orca, and other free tools. I've used the lockpermissions-table to set directory/file-permissions and so on.

However, I need to grant all users (Local Machine\Users) write/modify permissions to the Key: HKEY_Local_Machine\Software\My_app and all sub-keys/strings . In lockpermissions it seems that I can only set permissions on individual strings and not on a Key ?

I've found a lot of references to "Custom Actions", scripting and "setacl" in various editions, but I'm kind ‘a new to this msi-stuff, and I'm not a programmer....don't know much about scripting and stuff.

Any pointers to scripting examples or other relevant tips would be greatly appreciated !

Kenneth Hempkins

0 Comments   [ + ] Show comments

Answers (4)

Posted by: jib 17 years ago
Purple Belt
1
This is a problem when dealing with the lockpermissions table, and I remember solving this myself once. I don't remember exactly if I solved it without resorting to custom actions, though. Is it not possible to just specifiy the key like you would any other object? Remember it is also (most likely) dependent on what order the registry keys are created when the installation runs.


  • The docs on msdn arent specific on this: http://msdn2.microsoft.com/en-us/library/aa369774.aspx
  • InstallShield has some info: http://support.installshield.com/kb/view.asp?articleid=Q107639
  • http://support.microsoft.com/kb/288975


I'm sorry, but if you are serious about packaging you really need to read up on custom actions [8|] It is a very sprawling topic which requires a good understanding of windows fundamentals. This is a good post to get you started:

http://bonemanblog.blogspot.com/2005/10/custom-action-tutorial-part-i-custom.html
Posted by: nheim 17 years ago
10th Degree Black Belt
1
Hi Kenneth,
look at this: http://www.appdeploy.com/scripts/view.asp?id=523

There i have explained, how to use setacl for file permissions.

With the setacl docu, its no big deal to do it with registry permissions.

Hope, this gives you a start.

Regards, Nick
Posted by: cygan 17 years ago
Fifth Degree Brown Belt
1
have a look at the forum I have demonstrated how to use custom actions and setacl to set permissions on files, folders and reg keys and it works a great deal
Posted by: dinozilla 17 years ago
Orange Senior Belt
1
try look for RegDacl as well....it works too
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