Home > DeveloperSection > Forums > install msi file in silent mode using c#
Ankita Pandey
Ankita Pandey

Total Post:183

Points:1285
Posted on    January-17-2013 7:21 AM

 C# C# 
Ratings:


 1 Reply(s)
 6043  View(s)
Rate this:
Hi every one,

Can any one tell me how to install msi file in silent mode (no user interaction) using c#?

Thanks in advance


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    January-18-2013 1:12 AM

Hi Ankita Pandey!

You can try this!

Use below namespace

using System.Diagnostics;

Write below code within page load event or any other control's event

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

I hope it resolve your problem

Don't want to miss updates? Please click the below button!

Follow MindStick