WIX:InstallValidate 在安装 MSI 时添加 REMOVE 属性?

发布于 2024-09-18 17:06:17 字数 373 浏览 2 评论 0原文

我正在创建一个 MSI。当我尝试通过安装它时,

msiexec /lvxe log.txt /i product.msi

我在日志文件中看到以下内容:

MSI (s) (2C:BC) [06:22:05:579]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'ALL'.
Action ended 6:22:05: InstallValidate. Return value 1.

这会阻止我运行自定义操作,因为它的条件是(未安装且未删除)。

有什么想法吗?我认为 REMOVE=ALL 仅为卸载而设置。提前致谢。

I'm creating a MSI. When I try to install it through

msiexec /lvxe log.txt /i product.msi

I see the following in the log file:

MSI (s) (2C:BC) [06:22:05:579]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'ALL'.
Action ended 6:22:05: InstallValidate. Return value 1.

Which prevents a custom action I have from running because its condition is (Not Installed and Not Remove).

Any idea? I thought REMOVE=ALL is set only for uninstalls. Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱要勇敢去追 2024-09-25 17:06:17

以下内容基于我收到的日志文件:

根据 Windows Installer 文档:

默认值 如果未指定值,则安装级别为默认值
到 1。

有 1 个功能级别为 30,因此未安装。

由于没有计划安装任何功能,因此根据定义,这是卸载,InstallValidate 将 REMOVE 属性设置为 ALL。

安装级别属性 (MSDN)

The following is based on a logfile that I was sent:

Per the Windows Installer documentation:

Default Value If no value is specified, the install level defaults
to 1.

There was 1 feature with a Level of 30 therefore wasn't being installed.

Since no features were scheduled to install, this was by definition an uninstall and InstallValidate set the REMOVE property to ALL.

INSTALLLEVEL Property (MSDN)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文