Click here to Skip to main content
12,248,339 members (48,974 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET C#4.0 Windows-Installer , +
i want to create a windows application which is install a msi file in silently mode , when i use the /qb or /qr it's work but when i tried to used /qn, the msi file isn't installed. below is full code for installing silently.

Process process = new Process();
process.StartInfo.FileName = "msiexec.exe";
process.StartInfo.Arguments = string.Format("/qn /i \"{0}\" ALLUSERS=1", "C:\\WinAppDemoSetup_3.msi");
process.Start();
process.WaitForExit();

please resolve my problem or give me another way to perform this task.
Posted 16-Jan-13 4:21am
vs1491393

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Please see my very recent answer: Install exes silently[^].

And you are writing some installing code by starting another installer. It does not seem making a whole lot of sense. Why not to make required installation in first place, without this "middleman"?

—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100