简体   繁体   中英

Security permissions for folder in vista (using c# application)

I've written a code in winforms and added this code to a setup application. (That code is actually to create files in application directory)

When I try to run the application in vista it is not working because the file creation permission. If I manually enable the permissions to application folder it is working fine.

How can I assign permissions to my applications folder using c#?

Maybe you would like to check whether you are running as administrator or not in the first place? Or check whether you have your UAC account turn on.

Also note that there is no way to create a file if you are running under guest mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM