Old 22nd August 2012, 17: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
Old 22nd August 2012, 22:44   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,316
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd August 2012, 09:25   #3
dr_awol
Junior Member
 
Join Date: Jul 2012
Posts: 8
AccessControl::GrantOnRegKey

So something like?

AccessControl::GrantOnRegKey \
HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs" "osk" "FullAccess"
dr_awol is offline   Reply With Quote
Old 23rd August 2012, 11:26   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Look at the examples on http://nsis.sourceforge.net/AccessControl_plug-in.

Stu
Afrow UK is offline   Reply With Quote
Old 24th August 2012, 12:53   #5
dr_awol
Junior Member
 
Join Date: Jul 2012
Posts: 8
Quote:
Originally Posted by Afrow UK View Post
Thanks i saw this page, but i guess i just misread it :-) working now

Thanks
dr_awol is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
access control, registry

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump