我正在尝试让一个 VB 应用程序 ( my.exe ) 在 Windows 7 上以管理员身份运行。所以我正在使用 Manifest (下面) 来做到这一点。但是当我运行它(并立即退出 My.exe)时,我收到程序兼容性助手警告:“该程序可能没有正确安装”当然,我没有进行任何安装。
- 如果我将 EXE 设置为以管理员身份运行 (通过右键单击 My.exe ),那么我不会收到此警告(无论是否存在清单)或
- 如果我删除清单文件(并将 exe 设置为以管理员身份运行或不这样做),我不会收到警告。
有什么想法为什么会发生这种情况以及如何不使用 Manifest 获得此警告?
显现
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<!-- Make My Manifest 0.7.300 -->
<assemblyIdentity name="Bungalow.Software,.Inc..CDCodes" processorArchitecture="X86" type="win32" version="10.0.0.16" />
<description>Internal BSW program to generation installation and actvation codes</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<**requestedExecutionLevel level="requireAdministrator" uiAccess="false"** />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>