Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2014
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