Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect a running MSI Installation [duplicate]

I'm looking for a way to detect if a Windows Installer installation is already in progress. What I've found out so far is:

  • Checking the Registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\InProgress
  • Using the Windows Installer API function MSIInstallProduct with a dummy file which then would return the specific error code.

Does anybody know a smarter solution?

like image 426
Marco Rebsamen Avatar asked Sep 26 '22 20:09

Marco Rebsamen


1 Answers

Same as this:

check for windows installer mutex availability

and this:

http://blogs.msdn.com/b/heaths/archive/2006/01/23/516454.aspx

Question 1:

http://blogs.msdn.com/b/windows_installer_team/archive/2005/11/09/487559.aspx

like image 125
PhilDW Avatar answered Oct 11 '22 06:10

PhilDW