Skip to content
⌘ NSIS Forum Archive

Registry, Access Control

5 posts

dr_awol#

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"
Anders#
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...
dr_awol#
AccessControl::GrantOnRegKey

So something like?

AccessControl::GrantOnRegKey \
HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs" "osk" "FullAccess"
dr_awol#
Originally Posted by Afrow UK View Post
Thanks i saw this page, but i guess i just misread it :-) working now

Thanks