如何检查是否安装了 Windows Installer 3.1 或更高版本? [英] How do I check if Windows Installer 3.1 or higher is installed?

查看:62
本文介绍了如何检查是否安装了 Windows Installer 3.1 或更高版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道这一点,因为这是 .NET 3.5 的先决条件,如果我包含 .NET 引导程序,我还应该查看是否需要 Windows Installer 3.1.

I need to know this since this is a pre-req for .NET 3.5 and if I'm including the .NET bootstrapper, I should also see if Windows Installer 3.1 is needed.

现在我正在检查注册表项:

Right now I'm checking for the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2

这将检查 Windows Installer 3.1,但我怀疑它不会检查更高版本.(无法确认或否认)

Which will check for Windows Installer 3.1 but I suspect it doesn't check for higher versions. (Haven't been able to confirm or deny that)

我应该查看哪个注册表项来查找此信息?

What registry key should I look at to find this information?

我需要在 Inno Setup 中检查它,这是我用作引导程序的工具,但我不确定如何检查其中的 dll 版本.

I need to check this in Inno Setup which is what I'm using as my bootstrapper, and I'm not sure how to check a dll version in there.

推荐答案

使用以下注册表路径找到安装程序 msi.dll:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer

locate the installer msi.dll with this registry path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer

值:安装者位置

然后从该文件中获取版本信息.

then get the version information from that file.

更新:上面的路很旧!此处记录了检测版本的新方法:http://msdn.microsoft.com/en-us/library/aa368280%28VS.85%29.aspx

update: the way above is old! new way to detect the version is documented here: http://msdn.microsoft.com/en-us/library/aa368280%28VS.85%29.aspx

这篇关于如何检查是否安装了 Windows Installer 3.1 或更高版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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