开发者

Request permission to write to Program Files directory during run time

开发者 https://www.devze.com 2023-01-29 21:18 出处:网络
I\'m in a position right now where my program needs access to write to the Program Files directory. From what I can tell, it seems like applications can request this kind of perm开发者_运维问答ission

I'm in a position right now where my program needs access to write to the Program Files directory. From what I can tell, it seems like applications can request this kind of perm开发者_运维问答ission while they're running (the screen will go dark, and a box will pop up with Continue and Cancel buttons), although I'm not sure what I have to do to cause this to pop up.

If anyone can help, that would be great.


This has been asked and answered several times.

The short answer is, you can only do it through COM or launching another process.

See this question: Request Windows Vista UAC elevation if path is protected?

0

精彩评论

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