Click here to Skip to main content
14,327,078 members
Rate this:
Please Sign up or sign in to 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.

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

Rate this:
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
   

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100