Click here to Skip to main content
15,041,393 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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.

C#
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

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
   

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900