View Single Post
Old 17th February 2021, 09:15   #1
stass
Senior Member
 
Join Date: Nov 2012
Posts: 166
How to find out - who is the owner of any registry key?

How to find out about permissions (access rights) in NSIS, who is the owner of any registry key ?
How can you use the RegGetKeySecurity function for these purposes ?

ps AccessControl plug-in - why doesn't it work ...

code:
!addplugindir .
OutFile AccessControlTest.exe
RequestExecutionLevel admin
var Owner

Section
AccessControl::GetRegKeyOwner "HKLM" "SYSTEM\ControlSet001\Control\AGP"
Pop $Owner
MessageBox MB_OK "$Owner"
SectionEnd

stass is offline   Reply With Quote