INSTALL MSI FILE IN SILENT MODE USING C#

Total Post:183

Points:1285
C# 
C#
 9180  View(s)
Ratings:
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
  1. Post:604

    Points:4228
    Re: install msi file in silent mode using c#

    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

      Modified On Mar-29-2018 06:12:53 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!