我想要做的是將我們公司使用的某些掃描儀的msi安裝程序嵌入到有助於用戶選擇他們想要的掃描儀的幫助臺界面中,然後單擊按鈕以安裝驅動程序。 private void MSIexec(string arguments)//Run MSIexec = MSIexec("Enter Command");
{
Process process = new Process();
我試圖啓動一個進程並等待退出代碼。該過程使用參數列表啓動msiexec。當我運行我的腳本談到了爭論的幫助嚮導,但是如果我運行所產生的在CMD命令直接: write-host $command
它按預期工作。這裏是我完整的腳本: # Get uninstall strings from registry, looking for the msiexec option
$applist = Ge