cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ISNoob
Level 6

Setting R/W permissions to directories

I am trying to set Read/Write permissions to a directory for EVERYONE.

Please see attached screen shot for what I am setting/trying to do.

After installing the application and when I start to use the application as an administrator I am able to write to that directory.
When I log in as any user other than administrator I am unable to write to the directory. I verified if the directory was read only by right clicking on the directory in question and checking its properties, and I confirmed it was read only.

So even after I set the permissions as described (see attached) in installshield, why is the directory read only?
Am I using this functionality in installshield correctly? If not, how can I allow read/write permissions to a directory for all users?
Labels (1)
0 Kudos
(6) Replies
ChandanOmkar
Level 8

assign the permissions to the each components associated with that particular folder. Asiigning permisiion to the folder only will not change the permisiions. This will solve your problem.
0 Kudos
Reureu
Level 10

Hi,

There is a bullet-proof way to grant R/W permissions to a file, folder or even a registry key. It uses some InstallScript code and is described here:
http://community.installshield.com/showthread.php?t=168440
This approach allows you to grant R/W permissions to any folder or file on the target PC, even if they don't correspond to any component of your setup.

Another possibility is to use the cacls command. More details here:
http://community.installshield.com/showthread.php?p=384642

You can even use a VB script which uses cacls. It is described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;825751

We tried to use the "Permissions" dialog, but it did not completely work. Indeed, you don't know what happens if several components have the same target folder, but define different R/W permissions.

Regards
0 Kudos
ISNoob
Level 6

Solved this by using a bat file and running the bat file as a custom action. Works wonders!
0 Kudos
ISNoob
Level 6

Installshield:- The very first post I posted in THIS thread, the functionality that Installshield provides to set permissions DOES NOT WORK!!! (Please see first post in this thread, see attached image).
Has setting permissions this way (Please see first post in this thread, see attached image) worked for anyone????
0 Kudos
palanisamy
Level 7

which Dos command used to change the Access rights..
0 Kudos
Gvarma
Level 7

You could use Attrib -r (to remove Read-Only access).

Check out Attrib /? for further help.

HTH
0 Kudos