nsis: don't reboot in silent mode

This commit is contained in:
Juergen E. Fischer 2018-09-05 11:29:28 +02:00
parent 1c8eadcdcc
commit f38400d1e7

View File

@ -370,9 +370,16 @@ Section "QGIS" SecQGIS
IfFileExists "$INSTALL_DIR\etc\reboot" RebootNecessary NoRebootNecessary
RebootNecessary:
IfSilent FlagRebootNecessary
SetRebootFlag true
Return
FlagRebootNecessary:
SetErrorLevel 3010 ; ERROR_SUCCESS_REBOOT_REQUIRED
Return
NoRebootNecessary:
Return
SectionEnd
!endif