Inno Setup: Ask for reboot after uninstall

 https://stackoverflow.com/questions/36497580/inno-setup-ask-for-reboot-after-uninstall
 

Use UninstallNeedRestart event function:

function UninstallNeedRestart(): Boolean;
begin
  Result := True;
end;

It makes uninstaller ask for reboot at the end.

Note that you cannot combine this with the AlwaysRestart directive.

原文地址:https://www.cnblogs.com/liujx2019/p/10309065.html