“此程序可能未正确安装”。 Windows 7 RC中的消息 [英] "This program might not have installed correctly" message in Windows 7 RC

查看:89
本文介绍了“此程序可能未正确安装”。 Windows 7 RC中的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以在NT 5.x,Vista和Windows 7下完美运行的安装程序。它包含适用于NT 6.x上UAC的清单。

I have an installer that works perfectly under NT 5.x, Vista, and Windows 7. It contains the proper manifest for UAC on NT 6.x.

但是从Windows 7 RC开始,每次安装程序关闭时,Windows都会产生错误的此程序可能未正确安装的消息,即使该程序确实正确安装也没有任何问题。我从来没有在Vista或Windows 7 Beta中收到这些虚假消息。

But starting with Windows 7 RC, every time the setup program closes, Windows produces an erroneous "This program might not have installed correctly" message, even though the program did install correctly with no problems whatsoever. I never got these spurious messages in Vista or in Windows 7 beta.

我向Microsoft发送了错误报告,但没有回音。我以为这可能只是Windows 7 RC中的一个小故障,但问题是在重新安装的最新RTM托管版本之一中仍然存在该问题。微软对此没有任何文档,甚至也没有暗示可能触发它的原因。

I sent a bug report to Microsoft, but have not heard back. I thought that this might just be a glitch in the Windows 7 RC, but the problem is still there on a fresh install of one of the very recent RTM-escrow builds that was leaked. Microsoft has no documentation whatsoever about this--not even a hint to what might possibly be triggering it.

更令人沮丧的是,我得到了这个该程序可能没有即使我在安装代码的 any 之前的第一个您确定要进入屏幕上取消安装(创建临时目录,提取文件,复制,注册表等)。

Even more frustrating is that I get this "This program might not have installed correctly" message even if I cancel the install on the very first are-you-sure-you-want-to-proceed screen before any of the installation code (creating a temp dir, extracting files, copying, registry, etc.) is ever run.

有人知道这个吗?

推荐答案

好,回答我自己的问题,我找到了解决此问题的方法。我注意到WinRAR更改日志表明WinRAR的自解压器也遇到了同样的问题,并且已解决。因此,我下载了最新版本的WinRAR,并将其与较早的版本一起放入反汇编程序中,以查找任何新的API调用,等等。总之,总的来说,它所做的就是在清单中添加了以下内容:

Well, to answer my own question, I've found a way to solve this problem. I noticed that the WinRAR changelog indicated that WinRAR's self-extractor also suffered from the same problem, and that it was solved. So I downloaded the latest version of WinRAR and threw it into a disassembler, along with an earlier version, looking for any new API calls, etc. Long story short, it turns out that all that it did was add the following to the manifest:

<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,它的文档是在5月20日创建的。这并没有帮助Microsoft不在他们的任何Win7文档页面中链接到此文档,更不用说突出显示它了。 感叹

Some Googling of the strings turned up some documentation: apparently, this is something new that was added to Windows 7 and that the documentation for it was created on May 20. It didn't help that Microsoft doesn't link to this from any of their Win7 documentation pages, much less feature it prominently. sigh

编辑:在MSDN 此处

这篇关于“此程序可能未正确安装”。 Windows 7 RC中的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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