Hello,
What we're trying to do is develop an application that installs MSDE and
sets up a database for distribution of our product.
I run the MSDE setup using this code:
Dim installer As Process = Process.Start(Me.dlgOpenMSDE.FileName)
This starts Setup.exe. Basically, I need to wait until the install is over.
I can't just wait until Setup.exe is finished, because it closes as soon as
it opens the MSI. So I do a check for MSIs running.
While True
'start a new process of the installer they selected
Dim installProcesses() As Process
'get the processes that are msiexec.exe
installProcesses = Process.GetProcessesByName("msiexec")
'see if it's there are none
If installProcesses.GetUpperBound(0) = -1 Then
'there aren't any... continue the application
Exit While
End If
'sleep for half a second.
Thread.Sleep(500)
End While
It's pretty simple code, but here's where the problem is:
Right near the end of the install, the MSI freezes. It just stops at 6
seconds remaining! If I stop the application, the msi continues fine. I can
step through the code, and it goes exactly as I would expect, and continuing
through the loop.
It's such a narrow and specific problem that I can't find anything on google.
Thanks in advance,
Bryce Covert