PDA

View Full Version : Allow READ/WRITE Permission on Directory to All Users



ISNoob
01-05-2009, 12:57 AM
Hi

How can I allow Read/Write permissions to all users? I have directories in the [CommonAppDataFolder] and the directories in there need to have read/write access to everyone.

Does anyone know how to set this in a Basic MSI project?

rags.msi
01-05-2009, 02:27 AM
Hi,

Click on component of that particuler folder and right click n go to propertis
check the permission tab in that you can give Everyone n enter check the all boxes.


Regards
Rags:p

TheTraveler
01-05-2009, 02:36 PM
There is a command line executable that you can run to give any user you specify in the command line access to folders of your choosing. The command is cacls.

ISNoob
01-05-2009, 08:21 PM
Thanks rags.msi, that is very useful info and I shall use it when I need to give permissions to file. But I need to give read/write permissions to Directories. How can that be done?

TheTraveler- I dont understand how I can set this command in installshiled. Can you please give me a step to step example?

DanGalender
01-05-2009, 10:47 PM
In the Files and Folders view you can right-click on the folder, select Properties, then click on Permissions to set permissions on that folder. Alternatively, you can use the Destination Permissions property of any component whose destination is that same folder--they both set the same entry in the LockPermissions table of the MSI database.

In a Basic MSI project either of these would be preferable to using the CACLS utility.

TheTraveler
01-07-2009, 11:39 AM
I posted a piece of sample code with explanation in a different thread. Here is a link (http://community.acresso.com/showthread.php?t=181274&highlight=CACLS).

JimmiLee
02-02-2009, 11:40 PM
I too have a Basic MSI project, but when I set the permissions on a folder under Files and Folders, it doesn't work - this I find a little weird, as it worked fine for previous projects of mine on IS12! Operating systems I'm installing to, are both 32 and 64bit versions of Server2003 and 2008, but same issue . . .
I'm looking into that CAcsl or whatever thing now . . .