简体   繁体   English

显示“程序兼容性助手”弹出窗口

[英]“Program Compatibility Assistant” pop-up shown

An .exe is build in "anyCPU" configuration. .exe是在“ anyCPU”配置中构建的。 While running in 64-bit machine, "Program Compatibility Assistant" pop-up is shown (in Standard User). 在64位计算机上运行时,将显示“程序兼容性助手”弹出窗口(在“标准用户”中)。 The same .exe executes fine in 32-bit machine without any problem. 相同的.exe在32位计算机上可以正常运行,没有任何问题。

Building the .exe in "x64" mode, it worked fine in 64-bit machine. 在“ x64”模式下构建.exe,它在64位计算机上运行良好。

What might be the problem, because of which the "Program Compatibility Assistant" pop-up is shown? 由于显示了“程序兼容性助手”弹出窗口,可能是什么问题?

Please help. 请帮忙。

This issue is resolved. 此问题已解决。 It was not due to 32-bit or 64-bit. 这不是由于32位或64位引起的。 It was running an .exe which was not vista aware type or required higher privileges to execute. 它运行的不是可执行的Vista类型的.exe或需要更高的特权才能执行。 So, while building an exe a manifest file was added and in the manifest requiredexecutionlevel was updated to be "higherprivileges" and added supported OS guids to Windows 7. Similarly supported OS can be added for Windows 8 also. 因此,在构建exe时,添加了一个清单文件,清单中的requiredexecutionlevel已更新为“ higherprivileges”,并将受支持的OS指南添加到Windows7。同样,也可以为Windows 8添加受支持的OS。 Hence building the exe with the manifest resolved the issue. 因此,使用清单构建exe解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM