如何防止“此程序可能未正确安装"Vista 上的消息 [英] How to prevent "This program might not have installed correctly" messages on Vista
问题描述
我有一个产品设置可执行文件,可以将一些文件复制到用户的硬盘上.它不是通常意义上的典型安装程序(它不会向开始"菜单或程序文件"文件夹添加任何内容).
I have a product setup executable that copies some files to the user's hard drive. It's not a typical installer in the normal sense (it doesn't add anything to the Start Menu or Program Files folders).
每次在 Vista 上运行安装程序,在 exe 终止后,Vista 都会生成一个任务对话框:
Each time the setup program is run on Vista, after the exe terminates, Vista produces a task dialog:
- 此程序可能未正确安装
- 使用推荐的设置重新安装
- 此程序安装正确
是否需要从 exe 或注册表项中调用一个函数来设置,以向操作系统表明程序安装正确(或至少抑制此消息)?
Is there a function I need to call from the exe or registry entry to set, to indicate to the operating system that the program installed correctly (or to at least supress this message)?
相关问题: 此程序可能没有正确安装"Windows 7 RC 中的消息(针对 Windows 7 特定问题)
Related questions: "This program might not have installed correctly" message in Windows 7 RC (for Windows 7-specific issues)
推荐答案
您需要在注册表的 AppCompat 部分添加一些信息.
You need to add some information into the AppCompat section of the registry.
请参阅此链接并查找如何禁用程序兼容性助手警告".
See this link and look for "How to disable a Program Compatibility Assistant warning".
显然还有一种方法涉及将清单文件添加到您的安装可执行文件中,以将其标记为Vista 感知".
Also there is apparently a method that involves adding a manifest file to your setup executable to flag it as "Vista-aware".
这篇关于如何防止“此程序可能未正确安装"Vista 上的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!