silent msi install issue
silent msi install issue
silent msi install issue
silent msi install issue
silent msi install issue
silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue
silent msi install issue silent msi install issue
silent msi install issue
Go Back  Xtreme Visual Basic Talk > > > silent msi install issue


Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2015, 01:33 PM
Brocke Brocke is offline
Freshman
 
Join Date: Oct 2010
Posts: 41
Default silent msi install issue


Not sure what I'm doing wrong here my code looks right

Code:
   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 = "cmd.exe"
                        p.StartInfo = pi
                        p.Start()
I'm trying to have my program get updated silent but its not working.

Not really positive what going on. Command line it works and close the program and updates.
Reply With Quote
  #2  
Old 09-06-2015, 04:07 PM
Brocke Brocke is offline
Freshman
 
Join Date: Oct 2010
Posts: 41
Default

I figured it out

I have to use pi.FileName = "msiexec" not cmd.exe
Reply With Quote
  #3  
Old 09-06-2015, 07:02 PM
BThunderW's Avatar
BThunderW BThunderW is offline
Administrator
 
Join Date: Nov 2011
Posts: 11
Default

Thanks for following up with a solution
Reply With Quote
  #4  
Old 10-06-2015, 06:26 PM
Brocke Brocke is offline
Freshman
 
Join Date: Oct 2010
Posts: 41
Default

ok guys I'm stuck now.

so far I have this

Code:
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
                        p.Start()
                        Form1.Close
and I use this code in my Setup Project in the custom actions and under Commit

Code:
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
Reply

Tags
process, processstartinfo, program, silent, dim, chr34, updated, install, positive, command, msi, close, updates, line, p.startinfo, pi.windowstyle, processwindowstyle.hidden, wrong, pi.arguments, msiexec, pi.filename, cmd.exe, code, /qn, test.msi


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
silent msi install issue
silent msi install issue
silent msi install issue silent msi install issue
silent msi install issue
silent msi install issue
silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue silent msi install issue
silent msi install issue
silent msi install issue
 
silent msi install issue
silent msi install issue
 
-->