0

我需要通过预定义的参数值(如服务器、root 密码等)从基本 c# 桌面应用程序安装“appserv-win32-2.5.10.exe”。我通过将我的预定义参数发送到安装过程。问题是我怎样才能得到这个应用程序''appserv-win32-2.5.10.exe''的参数名称

int exitcode;
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = true;
startInfo.FileName = @"server\appserv-win32-2.5.10.exe";
startInfo.WindowStyle = ProcessWindowStyle.Hidden; 
/// startInfo.Arguments = "/s /v/qn"; // Arguments 
using (Process exeProcess = Process.Start(startInfo))
        {
            exeProcess.WaitForExit();
            exitcode = exeProcess.ExitCode;
            MessageBox.Show("exitcode:" + exitcode);
        }
4

0 回答 0