Click here to Skip to main content
Sign Up to vote bad
good
See more: C#4.0Windows-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 - 3:21
vs1491393


1 solution

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
Your Filters
Interested
Ignored
     
0 OriginalGriff 273
1 Mahesh Bailwal 230
2 Ron Beyer 220
3 Aarti Meswania 195
4 Rohan Leuva 170
0 Sergey Alexandrovich Kryukov 8,548
1 OriginalGriff 6,819
2 CPallini 3,648
3 Rohan Leuva 2,933
4 Maciej Los 2,288


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid