MSI doesn't run from within C#

前端 未结 3 1292
南笙
南笙 2021-01-12 10:24

I am trying to run an MSI file from C# using the Proces.Start method. The MSI file is fine, because I can run that normally, but when I try to run the MSI file within some C

3条回答
  •  时光说笑
    2021-01-12 10:28

    It is also possible to execute the .msi file directly with the associated application. This happens when you set UseShellExecute to true:

    Process.Start(new ProcessStartInfo() 
    { 
        FileName = @"c:\somepath\mySetup.msi", 
        UseShellExecute = true 
    });
    

提交回复
热议问题