This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Setting R/W permissions to directories
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2009
12:41 AM
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?
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?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2009
05:00 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2009
08:49 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
02:17 AM
Solved this by using a bat file and running the bat file as a custom action. Works wonders!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
02:19 AM
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????
Has setting permissions this way (Please see first post in this thread, see attached image) worked for anyone????
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
02:20 AM
which Dos command used to change the Access rights..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
04:35 PM
You could use Attrib -r (to remove Read-Only access).
Check out Attrib /? for further help.
HTH
Check out Attrib /? for further help.
HTH