I'm obviously missing something, i can't get the AccessControl plugin to work.
I'm using Vista, running as an admin user with the UAC turned on.
I'm trying to make a file have generic read and generic write access for all users, or maybe just full acccess.
I've tried the line:
But this gives me an error when I compile, am I missing something such as including the dll or something?AccessControl::GrantOnFile "$strMachineIniPath" "(S-1-1-0)" "GenericRead + GenericWrite"
I've copied the AccessControll.dll to the same directory as my install script (nsi and ini's).
After reading up on how to use a dll I've tried:
This compiles but does not seem to do what I wanted.System::Call 'AccessControl.dll::GrantOnFile(t ."$strMachineIniPath", t ."(S-1-1-0)", t ."FullAccess")'
Also does a return value get pushed? I tried pop $r1, it had "success" in it, was that from this call or left over from a previous function call?
Any help would be greatly appreciated, I've been reading the forums all morning and still dont see what I'm doing wrong.
Thanks,
Coolblu77.