Answered by:
Detect if WIndows Install (Msiexec.exe) is installing before installing a program.

Question
-
Hey All,
I built a program that updates Adobe Reader, Java, Quicktime, and Flash. I extracted the .MSI installer for Reader, Java, and Quicktime and execute the MSI setup file for each in sequence if the program dected there out of date and wait for install to finish before installing the next. This works fine.
My question is i would like to detect if Msiexec.exe/windows installer is installing another program before i attempt to install the updates because they will fail if windows installer is installing something else when they attempt to install. I know that Msiexec.exe is almost always running in the background even if its not installing anything does anyone know how i could detect if its installing another program defore i attempt to install my updates?
Thanks,
Justin
- Moved by Liliane Teng Thursday, February 17, 2011 11:06 AM (From:Visual Basic General)
Thursday, February 10, 2011 1:33 PM
Answers
-
Hello Justin,
Welcome to MSDN forum.
I have moved this thread to Off-Topic forum, please repost on Setup forum as kaymaf suggested for more better suggestions. Thanks for your understanding.
If you have any concerns, please feel free to follow up.
Best regards
Liliane Teng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Justin Chalfant Tuesday, July 24, 2012 4:22 PM
Thursday, February 17, 2011 11:08 AM
All replies
-
Try to post this question in setup forum maybe someone will know the answer http://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads
By the way, if there is no answer in the above link, you could try to write a code using system FileWatcher to monitor your system and see if any file created before it start the update
kaymaf
CODE CONVERTER SITE
Thursday, February 10, 2011 2:27 PM -
Google results for your question suggested checking for the existence of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\InProgress"
- Proposed as answer by Tom Watson Monday, May 30, 2011 10:49 AM
Thursday, February 10, 2011 3:17 PM -
Hello Justin,
Welcome to MSDN forum.
I have moved this thread to Off-Topic forum, please repost on Setup forum as kaymaf suggested for more better suggestions. Thanks for your understanding.
If you have any concerns, please feel free to follow up.
Best regards
Liliane Teng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Justin Chalfant Tuesday, July 24, 2012 4:22 PM
Thursday, February 17, 2011 11:08 AM