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
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)
Please log in to answer
Posted by:
jib
17 years ago
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.
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
- 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
Posted by:
cygan
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.