如何检测 运行 MSI 安装
How to detect a running MSI Installation
我正在寻找一种方法来检测 Windows 安装程序安装是否已经在进行中。到目前为止我发现的是:
- 正在检查注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\InProgress
- 使用 Windows 安装程序 API 函数 MSIInstallProduct 和一个虚拟文件,然后 return 特定的错误代码。
有人知道更聪明的解决方案吗?
同上:
check for windows installer mutex availability
还有这个:
http://blogs.msdn.com/b/heaths/archive/2006/01/23/516454.aspx
问题 1:
http://blogs.msdn.com/b/windows_installer_team/archive/2005/11/09/487559.aspx
我正在寻找一种方法来检测 Windows 安装程序安装是否已经在进行中。到目前为止我发现的是:
- 正在检查注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\InProgress - 使用 Windows 安装程序 API 函数 MSIInstallProduct 和一个虚拟文件,然后 return 特定的错误代码。
有人知道更聪明的解决方案吗?
同上:
check for windows installer mutex availability
还有这个:
http://blogs.msdn.com/b/heaths/archive/2006/01/23/516454.aspx
问题 1:
http://blogs.msdn.com/b/windows_installer_team/archive/2005/11/09/487559.aspx