Click here to Skip to main content
15,911,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set full permission to Application folder
I am having a msi which will install an application "C:\Program Files\MyApplication"
How can I set full permissions to the folder "MyApplication"?
I am using C#.How can i set full permissions through code
Posted

You want to grant it from the installer or your application? To who you want to grant access? But here you have a sample, I hope it covers your problem:
http://www.solid-hosting.net/blog/coding/set-filefolder-permissions-during-an-msi-installation/[^]
 
Share this answer
 
Comments
N.venkatesh@greypad.com 25-Jun-12 6:48am    
Permission has to be given with out referring a new dll(Installer)
or
How to delete custom action dll once commit has done
Zoltán Zörgő 25-Jun-12 8:51am    
Is the dll not needed during application uninstall? The linked solution does not require any external dll.
N.venkatesh@greypad.com 25-Jun-12 8:53am    
No not required.
Why you want to give full permission. It is not advisable.
But if you want to Look this.


You have to add manifest file in your application.
 
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