我有一个产品安装可执行文件,可以将一些文件复制到用户的硬盘驱动器。它不是正常意义上的典型安装程序(它不会向“开始”菜单或“程序文件”文件夹添加任何内容)。
每次在 Vista 上运行安装程序时,exe 终止后,Vista 都会生成一个任务对话框:
- 该程序可能未正确安装
- 使用推荐配置重新安装
- 这个程序正确地安装了
是否需要从 exe 或注册表项调用一个函数来设置,以向操作系统指示该程序已正确安装(或至少抑制此消息)?
相关问题: Windows 7 RC 中出现“此程序可能未正确安装”消息 https://stackoverflow.com/questions/1069135/this-program-might-not-have-installed-correctly-message-in-windows-7-rc(针对 Windows 7 特定问题)
将此部分包含在程序的清单文件中:
<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}"/>
<!--The ID below indicates application support for Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<!--The ID below indicates application support for Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!--The ID below indicates application support for Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
它会通过声明您的应用程序与 Vista 和 Win 7 兼容来抑制程序兼容性助手。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)