如何防止“此程序可能未正确安装"? Vista上的消息 [英] How to prevent "This program might not have installed correctly" messages on Vista

查看:108
本文介绍了如何防止“此程序可能未正确安装"? Vista上的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个产品设置可执行文件,可以将某些文件复制到用户的硬盘上.从一般意义上说,它不是典型的安装程序(它不会在开始"菜单或程序文件"文件夹中添加任何内容).

每次在Vista上运行安装程序时,exe终止后,Vista都会生成一个任务对话框:

  • 此程序可能未正确安装
  • 使用建议的设置重新安装
  • 此程序已正确安装

我是否需要从exe或注册表项中调用一个函数来进行设置,以向操作系统指示该程序已正确安装(或至少禁止了此消息)?

相关问题: (针对Windows 7特定问题)

您需要在注册表的AppCompat部分中添加一些信息.

请参见此链接,然后查找如何禁用程序兼容性助手警告".

显然还有一种方法涉及将清单文件添加到您的安装可执行文件中,以将其标记为可识别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).

Each time the setup program is run on Vista, after the exe terminates, Vista produces a task dialog:

  • This program might not have installed correctly
  • Reinstall using recommended settings
  • This program installed correctly

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)?

Related questions: "This program might not have installed correctly" message in Windows 7 RC (for Windows 7-specific issues)

解决方案

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".

Also there is apparently a method that involves adding a manifest file to your setup executable to flag it as "Vista-aware".

这篇关于如何防止“此程序可能未正确安装"? Vista上的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆