在命令行中使用时会安装 MSI,但单击时不会安装

问题描述 投票:0回答:1

我的 WPF 应用程序有一个 MSI 安装程序。通常它是通过 AzureDevops 管道构建和部署的,但自 4 月 8 日以来就失败了。我认为值得注意的是:没有进行任何可能影响安装程序的代码更改。

一旦我单击安装程序(并在询问时为其提供管理员权限)并尝试安装应用程序 - 它失败了:

这是我从 Windows 事件中获取的信息:

我从应用程序更新中获取了一些日志,但也失败了:

MSI (s) (44:74) [04:16:25:443]: Created Custom Action Server with PID 59164 (0xE71C).
MSI (s) (44:60) [04:16:25:949]: Running as a service.
MSI (s) (44:60) [04:16:25:952]: Hello, I'm your 32bit Impersonated custom action server.
Action start 4:16:25: LoadConfig.
SFXCA: Failed to create temp directory. Error code 5
CustomAction LoadConfig returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 4:16:26: LoadConfig. Return value 3.
Action ended 4:16:26: INSTALL. Return value 3.

但是,如果我通过命令行运行安装程序 - 它可以工作!我使用了这个命令:

msiexec /i MyApplication.msi /l*v MyLogFile.txt

附注由 AzureDevops 管道构建的安装程序会发生这种情况。如果我在本地构建它 - 它会像平常一样工作。

有人知道为什么会发生这种情况以及如何让它再次工作吗?预先感谢!

c# installation wix windows-installer
1个回答
0
投票

问题与 WiX 中所做的更改有关:https://github.com/wixtoolset/issues/issues/8078。 在等待修复期间,我们通过降级管道中的版本来解决问题:

choco install wixtoolset --version 3.14 --allow-downgrade --force -y
© www.soinside.com 2019 - 2024. All rights reserved.