通过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.

最好的问候,

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