MSI MessageBox Custom Action

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

+3
source share
1

VBScript MSIProcessMessage http://msdn.microsoft.com/en-us/library/xc8bz3y5.aspx

VBScript . , VBScript ( JScript) Custom Actions Suck.

VBScript , , 100% , 10% . .

+1

Source: https://habr.com/ru/post/1734964/


All Articles