如何检测正在运行的MSI安装
我正在寻找一种方法来检测Windows Installer安装是否已在进行中。 到目前为止我发现的是:
- 检查注册表项:
HKEY_LOCAL_MACHINE \ SOFTWARE \微软\的Windows \ CurrentVersion \安装\ INPROGRESS - 使用带有虚拟文件的Windows Installer API函数MSIInstallProduct ,然后返回特定的错误代码。
有人知道更聪明的解决方案吗?
与此相同:
检查Windows安装程序mutex的可用性
还有这个:
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