有什么想法吗?
谢谢
[编辑:]
我跟随Shay的领导(谢谢),并做了一些我自己的挖掘.我将以下XML添加到应用程序的清单中:
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"> </requestedExecutionLevel> </requestedPrivileges> </security> </trustInfo>
(另见:msdn.microsoft.com/en-us/library/bb756929.aspx)
这解决了Vista 64上的问题.
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <application> <!--The ID below indicates application support for Windows Vista --> <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> <!--The ID below indicates application support for Windows 7 --> <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> </application> </compatibility>
解决了Windows 7.
但出于某种原因,它仍然发生在Vista 32 …
我也尝试编辑导致问题的特定DLL的清单,但它没有任何效果.只有可执行文件的清单本身才会影响问题.
那么…… Vista 32?
How can I opt out of the Program Compatibility Assistant for my
setup?In order to prevent the Program Compatibility Assistant from appearing,you must include an embedded manifest that specifies a requested execution level for your setup executable. If you wrap the setup executable in a self-extracting package,you must also include an embedded manifest in the self-extracting package too. Once you do this,Windows Vista will treat your setup as Windows Vista-aware,and it will no longer show the PCA dialog when setup exits after a failure or cancellation.