Archive: Registry, Access Control


Registry, Access Control
My installer requires me to change the Current onscreen keyboard from windows to a different keyboard...

my problems is that when i try to update the registry setting it does not change.. i looked into this and i found you can manually change ownership to one of my users and the installer will work. with just WriteRegStr HKLM

is there a way i can avoid manually changing ownership? I looked in to the AccessControl plug-in but does not seam to be working

 AccessControl::GrantOnRegKey \
HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs\osk" "StartExe" "FullAccess"

AccessControl::GrantOnRegKey \
HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs\osk" "ATExe" "FullAccess"

# Register
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs\osk" "ATExe" "Somelocation\MyKeyboard.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs\osk" "StartExe" "Somelocation\MyKeyboard.exe"

Your syntax is wrong, it is: "key user/group access" meaning you can only change the security of keys(folders) and not on single values...


AccessControl::GrantOnRegKey
So something like?

AccessControl::GrantOnRegKey \
HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs" "osk" "FullAccess"


Look at the examples on http://nsis.sourceforge.net/AccessControl_plug-in.

Stu


Originally posted by Afrow UK
Look at the examples on http://nsis.sourceforge.net/AccessControl_plug-in.

Stu
Thanks i saw this page, but i guess i just misread it :-) working now

Thanks