View Single Post
Old 10-06-2015, 06:26 PM
Brocke Brocke is offline
Join Date: Oct 2010
Posts: 42

ok guys I'm stuck now.

so far I have this

Dim p As Process = New Process()
                        Dim pi As ProcessStartInfo = New ProcessStartInfo()
                        pi.WindowStyle = ProcessWindowStyle.Hidden
                        pi.Arguments = "msiexec /i " & Chr(34) & My.Computer.FileSystem.SpecialDirectories.Temp.ToString & "\test.msi" & Chr(34) & " /qn"
                        pi.FileName = "msiexec"
                        p.StartInfo = pi
and I use this code in my Setup Project in the custom actions and under Commit

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """" & Property("CustomActionData") & """",7,False
Set WshShell = Nothing

Now what happening is my program updates but not always does the app close and restart.

What is Supposed to happen is the Program download the MSI runs it hidden, Closes the Main Form to exit. and then Start again after the program is installing/installed to use the new update.

any ideas ?
Reply With Quote