Page 1 of 1

All User App Data folder permissions?

Posted: Fri Aug 10, 2012 3:59 pm
by brunderj
Hi,
After creating a App Data folder for All User's (e.g. C:\ProgramData\MyCompany\MyTitle) in my script, do I need to set any kind of permissions on the folders/files for ANY user of the machine to be able to access the data files in it (read/write/create)?

Create Folder $ALLLOCALAPPDATA$\$COMPANY$\$TITLE$\UsrShare
Create Folder $ALLLOCALAPPDATA$\$COMPANY$\$TITLE$
Create Folder $ALLLOCALAPPDATA$\$COMPANY$

Also, do I need to create each folder in sequence like above, or just the end folder (UsrShare)?

Thanks,
John

Re: All User App Data folder permissions?

Posted: Mon Aug 13, 2012 7:33 am
by FrancescoT
Dear John,

you can create that folder using only:

Code: Select all

Create Folder $ALLLOCALAPPDATA$\$COMPANY$\$TITLE$\UsrShare
Once the folder is created (after Apply Install) you can use "Set Permissions" command to grant access to everyone to that folder.

Regards

Re: All User App Data folder permissions?

Posted: Mon Aug 13, 2012 8:06 pm
by brunderj
Thanks, Francesco. If I don't specifically set permissions on these folders, will Windows block my program from accessing files in them? The user doesn't really need access...just the program regardless of which user is logged in.
- John

Re: All User App Data folder permissions?

Posted: Tue Aug 14, 2012 2:34 am
by FrancescoT
Dear John,

if the user don't have enough privileges to access to that folder, the OS will block your app.

Anyway, by default USERS GROUP have access to "ProgramData" ... eventually you need to set permission only if your user have less privileges.

Of course, if this is the case, set the permission to your sub-folder only.

Regards

Re: All User App Data folder permissions?

Posted: Tue Aug 14, 2012 3:25 pm
by brunderj
Excellent...Just what I needed to know. Thanks! John

Re: All User App Data folder permissions?

Posted: Thu Aug 16, 2012 3:07 am
by FrancescoT
:D :D :D