强制用户使用 Burn 重启机器 [英] Force user to reboot machine with Burn

查看:24
本文介绍了强制用户使用 Burn 重启机器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 WiX 3.6/Burn 创建的引导加载程序,我想知道是否有一个类似于 <ExitCode Behavior="forceReboot"/> 的命令,它只会在 <chain> 标签中执行完所有内容后在卸载时执行.

I have a bootloader that I created with WiX 3.6/Burn and was wondering if there was a command similar to <ExitCode Behavior="forceReboot"/> that would execute only on uninstall after everything was executed in the <chain> tag.

推荐答案

您可以将 ScheduleReboot 操作置于您的 MSI 之一中,并限制该操作在卸载时运行.Burn 会尊重重启请求,并在最后通知用户需要重启.

You can put the ScheduleReboot action in one of your MSIs and condition the action to run on unistall. Burn will respect the restart request and inform the user a restart is required at the end.

这篇关于强制用户使用 Burn 重启机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆