All User App Data folder permissions?

Got a problem you cannot solve? Try here.
Post Reply
brunderj
Posts: 19
Joined: Mon Aug 06, 2012 7:05 pm

All User App Data folder permissions?

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: All User App Data folder permissions?

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
brunderj
Posts: 19
Joined: Mon Aug 06, 2012 7:05 pm

Re: All User App Data folder permissions?

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: All User App Data folder permissions?

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
brunderj
Posts: 19
Joined: Mon Aug 06, 2012 7:05 pm

Re: All User App Data folder permissions?

Post by brunderj »

Excellent...Just what I needed to know. Thanks! John
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: All User App Data folder permissions?

Post by FrancescoT »

:D :D :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply