In Setup Editor using CreateFolder to create shared data folder - how to set R/W permission for all

This issue has been solved. See solution.
scobb's picture

I'm using Windows Install Editor 7.0 to create an install package.

I wish to Create a Folder to contain shared data among all users.

I'm using CreateFolder in the Setup Editor to do this. I create the folders necessary:
Windows\Profiles\All Users\Documents\MyCompany\MyApp\Data

But I'm having problems setting R/W permissions for all.

When I right click->Details on one of the folders, I go to the permissions tab and add user Everyone - then Select all for permissions and save.

I do this for all of the folders in the tree. When I run, the folders are created, but they are all read only.

When I added the User "Everyone" and it asks for the "Domain", I leave it blank (since I don't know) Is that the problem? If so, What generic domain should I use? I could find no information in the on-line documentation.

Thanks.

EdT's picture

Everyone does not work IME

Solution

Everyone does not appear to work reliably in my experience.
Since the permissions you are setting overwrite and replace any existing permissions, my personal preference is to use the following two settings to control permissions

Administrators - Full control
Users - whatever level of control you want to apply.

Using the group "users" works, where "everyone" does not.

You can leave the domain field blank, or use "builtin" for setting local permissions

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Carl Olsen's picture

Maybe try the public folder

I'm not sure I 100% understand your question, so what I say here may be way out of context....

I have found that in Vista / Windows 7 that sharing a folder across all users can be awkward, unless you put your shared data into a sub folder of C:\Users\public.

You can get the true location of the public folder with the %public environment variable, and it is safe from Vista virtualizing the folder on a per user basis, so what you put in there is truely shared amongst all users.

scobb's picture

Using "Users" works great. 

Using "Users" works great.  Thanks!  It probably should be added to the list of choices in the dialog.

Regarding the folder name, the one I used (C:\Documents and Settings\All Users\Documents\MyCompany\MyApp) gets mapped to the Vista equivalent (C:\Users\public) when installing to Vista.  It happened magically - but does work.

There is much discussion and debate regarding where to put shared files that users should have access to (under Vista and XP).  That seems to be the best place.