I'm somewhat new to VB.NET so I came here to ask a question. I'm making a custom installer which launches 'setup.exe' located in local directory and it was created by Visual Studio's "Publish" function. I want my WindowsFormApplication
to get the 'Yes or No' result from the 'setup.exe' and if it is yes, it will enable button1
and if No, it will show a MsgBox
telling "Process cancelled by user. I've researched a lot on the internet which only tells how to get YesorNo
result from the MsgBox
and do some action. I tried this:
Dim result As Integer = Process.Start("setup.exe")
If result = Result.No Then
MessageBox.Show("Process Cancelled by user")
ElseIf result = Result.Yes Then
Button1.Enabled = True
End If