如何检测是否安装了 Windows Installer?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1144888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I detect if Windows Installer is installed?
提问by samoz
I've figured out a way to tell which version of the .NET framework is installed by reading previous SO posts, but I've not found anything about the Windows Installer.
通过阅读以前的 SO 帖子,我找到了一种方法来判断安装了哪个版本的 .NET 框架,但我没有找到有关 Windows Installer 的任何信息。
Is there a registry key or anything similar that I could verify that Windows Installer 3.01+ is installed?
是否有注册表项或类似的东西可以验证是否安装了 Windows Installer 3.01+?
回答by Becky
To find out which version of Windows Installer you have installed on your PC, do this:
要了解您的 PC 上安装了哪个版本的 Windows Installer,请执行以下操作:
- Click on 'Start'
- Then click 'Run'
- In the box type " msiexec " then click OK.
- Then another box will come up and at the top of the box the first line should read which which version of Windows Installer you have installed on your PC.
- It should look something like this " Windows ? Installer. V 4.5.6001.22159 "
- 点击“开始”
- 然后点击“运行”
- 在框中键入“ msiexec ”,然后单击“确定”。
- 然后会出现另一个框,框顶部的第一行应显示您在 PC 上安装了哪个版本的 Windows Installer。
- 它应该类似于“Windows ? Installer. V 4.5.6001.22159”
回答by stuartd
"If you want to check the version of the Windows Installer on your system, check the version of MSI.DLL in the Windows\System 32 folder"
“如果要检查系统上 Windows Installer 的版本,请检查 Windows\System 32 文件夹中的 MSI.DLL 版本”
http://blogs.msdn.com/windows_installer_team/archive/2005/08/05/448386.aspx
http://blogs.msdn.com/windows_installer_team/archive/2005/08/05/448386.aspx
回答by Paul Sonier
You can just include the redistributable version of Windows Installer and not have to worry about it.
您可以只包含 Windows Installer 的可再发行版本而不必担心。
回答by C-Pound Guru
Check the file version of %SYS32%\msi.dll. On XP, it's in c:\windows\system32.
检查 %SYS32%\msi.dll 的文件版本。在 XP 上,它在 c:\windows\system32 中。