Archive: problem AcessControl


problem AcessControl
Hi,
I am trying to give full access to everyone for my installed files.

unfortunatly it does not work.

AccessControl::GrantOnFile "$INSTDIR\testing" "(S-1-1-0)" "FullAccess"

AccessControl::GrantOnFile "$INSTDIR\testing\somefile.exe" "(S-1-1-0)" "FullAccess"

I setting the right on the folder "testing" works but somefile.exe still is only fullaccess for admins.
it seems that is derives the right from somewhere. can I delete that derivate? or is there a different way?

thanks hans


By default, each file inherits its permissions from the folder that contains it. Try revoking all permissions from the files before you grant those you want.


hello,

thanks for your answer, but unfortunatly it seems not to work. there is no permission for "everyone" set on the file I want. only System, administrators, and my username is set. but I still cannot add everyone. it says permissions are not inherited on the file. I have set everyone for the upper folder. how would I inherit the permission now?

thanks


I found the problem, seems like a text replacement I did within the file caused the permissions to be lost. It created a new file(temp-file), therefor the permissions were lost.


thanks for help