gpt4 book ai didi

msbuild - 什么会导致 MSIExec 错误 1619 'This installation package could not be opened'

转载 作者:行者123 更新时间:2023-12-04 13:28:29 25 4
gpt4 key购买 nike

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

This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.



当我以下列方式使用 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

什么给?

最佳答案

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

关于msbuild - 什么会导致 MSIExec 错误 1619 'This installation package could not be opened',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10108517/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com