开发者

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 permissio开发者_Python百科ns 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜