Hello all,
Recently i had a problem, Trying to install my own software under "Program files\mysoftware" and create sub folders and files, I'm trying to grant full access to these files and folders to the ordinary vista user account.
Here is a snapshot on what i did:
RequestExecutionLevel user
GetFunctionAddress $0 GrantFullAccess
UAC::ExecCodeSegment $0
Function GrantFullAccess
AccessControl::GrantOnFile "$PROGRAMFILES\MySoftware\data\*.*" "(BU)" "FullAccess"
AccessControl::GrantOnFile "$DOCUMENTS\MySoftware\*.*" "(BU)" "FullAccess"
AccessControl::GrantOnFile "$PROFILE\.MySoftware\*.*" "(BU)" "FullAccess"
FunctionEnd
Now, when installing the software, and see the permission for the users, the logged in user don't have full access to the folders inside "program files".
Please help,
THanks
Vista "program files" sub directory permissions
4 posts
Why are you using the UAC plugin here? UAC::ExecCodeSegment will cause that function to NOT run as admin.
I don't know
Hello Andres
Actually I'm new to NSIS, I found an example, or to be more specific, i collected the script from snippets from the web.
Can you please tell me what should i do?
Thanks in advance
Hello Andres
Actually I'm new to NSIS, I found an example, or to be more specific, i collected the script from snippets from the web.
Can you please tell me what should i do?
Thanks in advance
Just don't use the UAC plugin. Put the AccessControl calls in a normal section