WIX:InstallValidate 在安装 MSI 时添加 REMOVE 属性?
我正在创建一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下内容基于我收到的日志文件:
根据 Windows Installer 文档:
有 1 个功能级别为 30,因此未安装。
由于没有计划安装任何功能,因此根据定义,这是卸载,InstallValidate 将 REMOVE 属性设置为 ALL。
安装级别属性 (MSDN)
The following is based on a logfile that I was sent:
Per the Windows Installer documentation:
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)