View Single Post
Old 22nd August 2012, 16:28   #1
dr_awol
Junior Member
 
Join Date: Jul 2012
Posts: 8
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

code:
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"

dr_awol is offline   Reply With Quote