我想要做的是将我们公司使用的某些扫描仪的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