Skip to content
⌘ NSIS Forum Archive

Modify key permissions

4 posts

gianlucav#

Modify key permissions

Is there a way to change the DACL of the created keys?

I need to give Everyone-Full Access to a subkey created under HKLM\Software\<MyApp>\

Have a nice day
GV
Anders#


AccessControl::GrantOnRegKey HKLM "Software\MyApp" "Everyone" "FullAccess"
gianlucav#
Nice, it seems to work perfectly. Just a simple question: the documentation ("AccessControl.txt") states that the result of the operation is pushed on the stack.

So the right way to use the plugin is something like
AccessControl::GrantOnRegKey <parameters...>
Pop $RESULT_OF_OPERATION

Right?

GV