通过UAC(自制程序)运行程序的问题如何编写要通过的代码? [英] Problem of running program through UAC (Own made program) How to write the code to pass through it?

查看:64
本文介绍了通过UAC(自制程序)运行程序的问题如何编写要通过的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了程序,该程序在首次运行该程序时需要创建文件夹,但由于它显示拒绝访问",因此无法创建文件夹.

I have implemented program which need to create the folder when first run the program but it cannot create folder because it said "access denied".

所以我关闭UAC并运行程序,现在我的程序可以正常工作了.因此,我认为我需要实现更多代码,以使我的程序具有创建UAC文件夹的权限.

So I turn off UAC and run the program now my program is working ok. So I think I need to implement some more code to make my program has a permission on UAC to create the folder.

任何人都可以给我一个想法,因为我不知道我应该在google中搜索什么.我的程序正在使用c#,所以请告诉我.

Can any one give me an idea about this because I don't know what should I search for in google. I am using c# for my program so please advise me.

最好的问候,

推荐答案

'首次运行'初始化应受到限制通常来说,针对每个用户的更改.


这篇关于通过UAC(自制程序)运行程序的问题如何编写要通过的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆