/build/static/layout/Breadcrumb_cap_w.png

Need write Permissions to a file.

I wanted to give write permissions to a file through msi. I tried by adding users in the properties->permissions. but its not working. actually am trying to edit the same file.please help me doing this.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: VikingLoki 19 years ago
Second Degree Brown Belt
0
Search this forum for mention of the SetACL utility. Launch it in a custom action to modify file permissions as desired.
Posted by: MSI_repackager 19 years ago
Orange Belt
0
Where is the file located that you are trying to edit the permissions for? Also, what are the default permissions for the user who will be running the application?

M
Posted by: sridtech 19 years ago
Senior Yellow Belt
0
Does this file already exist on your destination computer before installing the MSI??.
Posted by: cygan 19 years ago
Fifth Degree Brown Belt
0
hi there

I had similar problems. giving write permissions on a file.

using the lockpermissions table (wise 5.5) did not solve the problem.

in my working environment we write batch file to automate msi's.

used cacls commands in the batch file and it was fine.
Posted by: nostradamuz 19 years ago
Senior Yellow Belt
0
I am using wise.
In wise you can give rights to a file, dir and an reg item, really simple.

Right button, details (remark for local users, groups don't fill in the domain box)

It works perfectly!!
Posted by: teejay2 19 years ago
Senior Yellow Belt
0
Had a similar problem giving particular file write permission through my MSI.

All i had to do in the end was use the cacls command which worked perfectly.

Hope that helps.
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
ORIGINAL: nostradamuz

I am using wise.
In wise you can give rights to a file, dir and an reg item, really simple.

Right button, details (remark for local users, groups don't fill in the domain box)

It works perfectly!!


It does work perfectly if you do it right. If you just add permissions to say Authenticated Users then it will grant that permission. But the problem is that the lockpermissions table overwrites existing permissions and doesn't propagate inherited permissions.

If you dont add System and Administrators to the lockpermissions table as well the file may become orphaned and unable to be uninstalled.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ