什么可能导致 MSIExec 错误 1619“无法打开此安装包”

2024-01-30

我正在尝试从一组示例程序中自动执行一组 MSI 文件(由 WiX 生成)的往返安装和卸载。由于某种原因,双击后会生成一个非常适合安装的 .MSI 文件:

无法打开该安装包。验证该包是否存在并且您可以访问它,或者联系应用程序供应商以验证这是否是有效的 Windows Installer 包。

当我按以下方式使用 MSIEXEC 调用它时:

<ItemGroup>
  <_SampleMsi Include="$(_ArtifactsPathAcceptanceSamples)\**\*.msi" />
</ItemGroup>
<Exec Command="$(WixDir)\smoke &quot;%(_SampleMsi.Identity)&quot;"/>
<!--Guarantee precondition even if cleanup didn't work-->
<Exec Command="msiexec -passive -norestart -x &quot;%(_SampleMsi.Identity)&quot;" IgnoreExitCode="true"  />
<Exec Command="msiexec -norestart -i &quot;%(_SampleMsi.Identity)&quot;"  />
<!--Uninstall of every sample should also always work-->
<Exec Command="msiexec -passive -norestart -x &quot;%(_SampleMsi.Identity)&quot;" />

当我尝试根据产品 ID GUID 进行卸载时,也会发生同样的问题:-

msiexec -passive -norestart -x FC7445BB-7E1D-4E36-A42A-CFA56263E453

是什么赋予了?


刚刚删除.\准备结束文件名并且它起作用了。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

什么可能导致 MSIExec 错误 1619“无法打开此安装包” 的相关文章

随机推荐