Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Iam using visual studio setup project (msi installer). How to remove write permission to c drive programefiles? How to implement file permission step by step in msi installer?

What I have tried:

I tried cacls to remove file permission.
Posted
Updated 21-Jun-16 19:35pm
Comments
Mehdi Gholam 22-Jun-16 1:05am    
Why are you insisting on this way?
http://www.codeproject.com/Questions/1107323/How-remove-administrative-privilege-of-msi-install
Rahul s menon 22-Jun-16 1:14am    
I need to rename exe of application for update functionality. That reason why i need permission on c programe file to write.
Mehdi Gholam 22-Jun-16 1:16am    
Why? usually you overwrite it.
Rahul s menon 22-Jun-16 1:22am    
Perform auto update functionality. So i need that. Form my research it can be done using calcs,icacls but how to implement this in msi installer
Mehdi Gholam 22-Jun-16 1:26am    
msi files are installers and overwrite what is there.

Autoupdate only makes sense if the exe is initiator of the update (and you don't use msi in that context).

1 solution

It's a matter of using proper installation toolkit. For Microsoft OS, the most legitimate and reasonable is WiX; in this product, this is a standard element:
Permission Element,
see also: WiX — Wikipedia, the free encyclopedia,
WiX Toolset.

However, you should not touch the Program Files directory. This is not a legitimate action for an installer.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900