Archive: file and directory permission on install by admin user


file and directory permission on install by admin user
Hello,

I have my install and uninstall working for All Users. My installer requires that the user is an admin. Under my $INSTDIR I have the following directories and files:

$INSTDIR/dirA
$INSTDIR/dirA/fileA
$INSTDIR/dirA/fileB
$INSTDIR/dirA/fileC
$INSTDIR/dirA/dirB
$INSTDIR/dirA/dirB/fileA ...

The issue is if the Admin user executes my application these files and the directories all are owned by Admin and thus a non-admin user who runs my application will not have write permissions.

During installation can I have these files take on a read/write permission that allow all users (non-Admin and Admin) to use my application?

Thanks,
Tom


I am not sure if the AccessControl plugin is the answer you're looking for but you might as well take a look at it :)
The other option would be to set the ACLs using the SubInAcl.exe command line tool.
CF

[Edit]
Also check out this thread for another way to create the folders with different permissions