visual-studio - 卸载后Wix强制重启
问题描述
我想强制用户卸载后重新启动。
我发现了这种可能性: <ForceRebootAfter="InstallFinalize">REMOVE='ALL'
<InstallExecuteSequence>
<Custom Action="TopShelfServiceInstall"
After="InstallFiles">NOT Installed</Custom>
<Custom Action="TopShelfServiceUninstall"
After='InstallInitialize'>(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
<Custom Action="ActivateBarcodeReaderAx"
Before="InstallFinalize">NOT Installed</Custom>
<ForceReboot After="InstallFinalize">REMOVE='ALL'</ForceReboot>
</InstallExecuteSequence>
如果没有 ForceReboot,安装程序将正常工作。
但是,在编译时,总是会出现以下错误:
ICE27:InstallExecuteSequence 表中的“ForceReboot”操作位置错误。当前:执行后,正确:执行
ICE03:错误的条件字符串;表:InstallExecuteSequence,列:条件,键:ForceReboot
不幸的是,我不知道这条指令应该去哪里。先感谢您。
解决方案
推荐阅读
- git - git hooks如何通过命令行参数和stdin获取参数?
- python - 输出到 html 时如何增加 jupyter notebook/lab 单元格的宽度
- reactjs - 从数组中删除标签元素也会删除它后面的标签
- django - 从相关的 ForeignKey 获取所有 ManyToManyField 对象
- javascript - 如何将 jQuery Counter 停在上次离开的位置?
- javascript - 点击子菜单后关闭菜单
- json - 如何选择索引 LARAVEL API JSON 的位置
- reactjs - 日历不显示事件,没有错误
- python - `tf.keras.losses` 与 `tf.losses` 或 `tf.keras.optimizers` 与 `tf.optimizers` 有什么区别?
- visual-studio-code - Visual Studio Code 终端错误:文件名、目录名或卷标语法不正确