5

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?

Marco Rebsamen
  • 605
  • 7
  • 30

1 Answers1

4

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

Community
  • 1
  • 1
PhilDW
  • 20,260
  • 1
  • 18
  • 28
  • MSDN Blog links are broken. Active link is now https://devblogs.microsoft.com/setup/waiting-for-msiexec-exe-to-finish/ – RiverHeart Jun 22 '21 at 15:38