您的位置:首页 > 编程语言 > Delphi

让 C++builder 或 delphi 程序 获取管理员权限

2017-12-05 13:25 190 查看
参考:
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Customizing_the_Windows_Application_Manifest_File#Creating_a_Custom_Application_Manifest_File
实际操作方法如下:

先搜索 default_app.manifest   ,xe7在这里

C:\Program Files (x86)\Embarcadero\Studio\15.0\bin\default_app.manifest

复制到你想要的文件夹

修改其中 权限项目.

在自己的项目文件中设置custom manifest.

具体位置在这:

project->options->application->Runtime themes->use custom manifest->上述文件位置.

重新编译即可.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: