Results 1 to 2 of 2

Thread: How to run a setup.exe in passive mode?

  1. #1
    .NET Framework
    .NET 3.5
    Join Date
    Dec 2011
    Posts
    8
    Reputation
    0

    How to run a setup.exe in passive mode?

    Hi,

    I have a program I wrote in VB and it does a software check on a computer using a USB stick. When my application launches if something isnt installed the program will execute the setup file for the software/update needed. Is there a way to have it install without having to click on next through the wizard? I read something about using parameters and using passive mode? Any ideas? Thanks!

    Here is part of my code:
    Dim p AsNewProcess
    p.StartInfo.FileName = "\windows6.1-KB976932-X86.exe"
    p.StartInfo.WindowStyle = ProcessWindowStyle.Normal
    p.Start()
    Console.WriteLine(p.ProcessName)
     
    p.WaitForExit()

  2. #2
    .NET Framework
    .NET 3.5
    Join Date
    Dec 2011
    Posts
    8
    Reputation
    0
    NM I got it working p.StartInfo.Arguments = "/quiet"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •