Silent installation

前端 未结 3 958
执笔经年
执笔经年 2020-12-10 19:10

I am writing a InstallerClass using C# as a custom action for my installer, and I can successfully run an external exe (installation) using the

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 19:29

    This works for me.

    Process process = new Process();
    process.StartInfo.FileName = @ "C:\PATH\Setup.exe";
    process.StartInfo.Arguments = "/quiet";
    process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    process.Start();
    process.WaitForExit();
    

提交回复
热议问题