- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 wix 安装程序覆盖(读取:修改现有的注册表值),添加新的等。卸载后我需要将它们恢复到原始状态(我修改的那些)。由于 Wix 不支持此功能,因此我必须使用自定义操作(如我所读),我想运行一个 exe,该 exe 将使用 reg import
运行 .reg 文件.根据本站:http://www.installsite.org/pages/en/isnews/200108/index.htm我的自定义操作必须运行 After="InstallFinalize"
因为 wix 回滚会删除我的注册表导入(作为回滚的一部分)。
所以基本上它看起来像这样:安装程序修改 reg 值,卸载程序删除所有触及的注册表更改(回滚的一部分),我的 exe 将恢复它们。
所以我按照他的方法做了,以提升的权限启动我的exe等。
http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html
<Component Id="registry" Guid="*">
<File Id="regexe" Source="RegistryRollback.exe"/>
<File Id="regfile" Source="Reg_rollback.reg" />
</Component>
<Property Id="LaunchRegExe" Value="[#regexe]" />
<CustomAction Id="LaunchRegExe" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/>
<Custom Action='LaunchRegExe' After='InstallFinalize'>Installed AND NOT UPGRADINGPRODUCTCODE</Custom>
Error 19 ICE77: LaunchRegExe is a in-script custom action. It must be sequenced in between the InstallInitialize action and the InstallFinalize action in the InstallExecuteSequence table C:\Merlin\Main\Demo\KioskDemoSetup\nw_setup\nw.wxs 250 1 nw_setup
最佳答案
According to this site: http://www.installsite.org/pages/en/isnews/200108/index.htm my custom action has to run After="InstallFinalize" because the wix rollback would delete my registry import (as part of the rollback).
After="InstallFinalize"
运行的原因.
Deferred, rollback and commit custom actions can only be placed between InstallInitialize and InstallFinalize
Before="InstallFinalize"
运行您的操作.
关于Wix - 如何在卸载后 installfinalize 后运行 exe?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26661439/
我正在使用 wix 安装程序覆盖(读取:修改现有的注册表值),添加新的等。卸载后我需要将它们恢复到原始状态(我修改的那些)。由于 Wix 不支持此功能,因此我必须使用自定义操作(如我所读),我想运行一
我已经为我的 WIX V3 安装程序编写了一个 C# 自定义操作,它应该是 在 INSTALLFOLDER 中修改我的 appsettings.json .操作的 Execute-attribute
我正在使用 WiX v3.14 构建 .Net Core 安装程序。我有一个 CustomAction - UpdateJsonAppSettings - 用 C# 编写,旨在更新作为安装一部分的 a
我是一名优秀的程序员,十分优秀!