Skip to content

Commit

Permalink
nsis: don't reboot in silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 5, 2018
1 parent 1c8eadc commit f38400d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ms-windows/QGIS-Installer.nsi
Expand Up @@ -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
Expand Down

0 comments on commit f38400d

Please sign in to comment.