Link to home
Start Free TrialLog in
Avatar of MDKDevelopers
MDKDevelopersFlag for Canada

asked on

how to change file permissions in a .NET 4.0 Setup project

Hello Experts,

I have a setup projects that installs a winForms applications on the users machine. The user has an option to save some defaults in the .config file for the application, but when they try it throws "Access to the path is denied." When I look the folder is "Read".  I can change this manually, but that still doesn't fix the issue. How can I assign the appropriate permissions during my installation to let user update the .config file?
ASKER CERTIFIED SOLUTION
Avatar of MikeQc
MikeQc
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
-> By default, regular users does not have access to "Program Files" and his children.

I mean does not have "modification" access to "Program Files"...
Avatar of MDKDevelopers

ASKER

I did not get to try out the solution because we opted to go with Click Once deployment. I want to award you the pionts since I believe it's only fair to do so.