Inno Setup Compiler打包需要管理员权限的程序

当你的桌面应用程序在manifest文件中设置需要管理员权限运行,若在打包应用程序时没有对Inno Setup 做相应的配置,在程序安装结束勾选了“运行PCTV双模软终端”,如下图所示:

会出现如下图所示异常:

解决方法如下:

找到Inno Setup Compiler安装目录下的SetupLdr.e32文件,用ResHacker来打开SetupLdr.e32,修改Manifest文件:

将<requestedExecutionLevel level="asInvoker" uiAccess="false"/>改为:<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />即可。

posted on 2018-05-06 13:37  glepooek  阅读(234)  评论(0编辑  收藏  举报