易语言 让编译的程序自动以管理员身份运行

https://blog.csdn.net/snakorse/article/details/20420231


方法一:

下载此资源文件,下载地址:http://download.csdn.net/download/loveymlove/5599455,放置在易语言目录下的 static_lib 目录.

方法二:

外部工具修改编译后的程序的资源文件

1.先用Restorator打开要修改的程序,按ctrl+u键打开添加项目窗口,类型选择“windows标准类型—界面”名称就写1吧,之后点确定。

2.把下面的代码复制保存为1.txt到桌面

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="">
<assemblyIdentity version="1.0.0.0" name=".add"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
</trustInfo>
</asmv1:assembly>

3.点开界面选项再1那右击导入,导入那个1.txt之后点保存

好了再去看看程序的图标是不是多了个盾牌?多了就是添加成功了。
那个界面资源必须是1才可以。

相关推荐

网友评论(0)