INSTALL MSI FILE IN SILENT MODE USING C#

Ankita Pandey

Total Post:183

Points:1285
Posted by  Ankita Pandey
C# 
C#
 8458  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. AVADHESH PATEL

    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

Answer

NEWSLETTER

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