I want to create a custom action for my installer, which checks if Outlook is working and if it is, it prompts the user to close Outlook before continuing.
Everything works fine, except that when the MessageBox appears informing the user, it must close Outlook, it appears behind the current MSI installation window. I would like him to appear in front, but I canβt figure out how to do this.
I did some research and the MSIProcessMessage function looks like it would work, but it is an API function and I cannot figure out how to call it from my code.
Here is my code snippet:
Dim bCont As Boolean = True
While bCont
If Process.GetProcessesByName("OUTLOOK").Length > 0 Then
MsgBox("Please close Microsoft Outlook before you install the MissingLink Project Management add-in.", MsgBoxStyle.Information, "MissingLink Project Center")
Else
bCont = False
End If
End While
Thank,
Kevin
Kevin source
share