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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Search this forum for mention of the SetACL utility. Launch it in a custom action to modify file permissions as desired.
Answered 06/21/2005 by: VikingLoki
Second Degree Brown Belt

Please log in to comment
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
Answered 06/22/2005 by: MSI_repackager
Orange Belt

Please log in to comment
0
Does this file already exist on your destination computer before installing the MSI??.
Answered 06/30/2005 by: sridtech
Senior Yellow Belt

Please log in to comment
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.
Answered 07/11/2005 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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!!
Answered 07/11/2005 by: nostradamuz
Senior Yellow Belt

Please log in to comment
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.
Answered 07/13/2005 by: teejay2
Senior Yellow Belt

Please log in to comment
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.
Answered 07/13/2005 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity