msi 安装抛出 1639 作为字符之间具有 space 的 msi 的退出错误代码
msi installation throwing 1639 as exit error code for msi having space between characters
我有一些像 "A B C.msi" 这样的 msi,当我尝试使用 powershell 安装它时,它抛出退出代码错误 1639。
当我将 msi 重命名为 "ABC.msi" 而没有 space 时,安装越来越好。如何摆脱 space 东西。我不想重命名 msi。请建议 .
Start-Process -FilePath msiexec -ArgumentList /i,<path>,/quiet -PassThru -Wait
看起来路径参数不正确。
你要不要试试:
Start-Process -FilePath msiexec -ArgumentList /i,'<path>',/quiet -PassThru -Wait
(或者尝试“”)
见Start process with args which contains a path with blanks
编辑
由于以前的方法不起作用,我最后的尝试是:
$pathToMSI = "c:\downloads\a b c.msi"
Start-Process -FilePath msiexec -ArgumentList '/i',"`"$pathToMSI`"","/quiet" -PassThru -Wait
我有一些像 "A B C.msi" 这样的 msi,当我尝试使用 powershell 安装它时,它抛出退出代码错误 1639。
当我将 msi 重命名为 "ABC.msi" 而没有 space 时,安装越来越好。如何摆脱 space 东西。我不想重命名 msi。请建议 .
Start-Process -FilePath msiexec -ArgumentList /i,<path>,/quiet -PassThru -Wait
看起来路径参数不正确。
你要不要试试:
Start-Process -FilePath msiexec -ArgumentList /i,'<path>',/quiet -PassThru -Wait
(或者尝试“”)
见Start process with args which contains a path with blanks
编辑 由于以前的方法不起作用,我最后的尝试是:
$pathToMSI = "c:\downloads\a b c.msi"
Start-Process -FilePath msiexec -ArgumentList '/i',"`"$pathToMSI`"","/quiet" -PassThru -Wait