问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/13979073/force-user-to-reboot-machine-with-burn