Skip to content

Commit f38400d

Browse files
committedSep 5, 2018
nsis: don't reboot in silent mode
1 parent 1c8eadc commit f38400d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎ms-windows/QGIS-Installer.nsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,16 @@ Section "QGIS" SecQGIS
370370
IfFileExists "$INSTALL_DIR\etc\reboot" RebootNecessary NoRebootNecessary
371371

372372
RebootNecessary:
373+
IfSilent FlagRebootNecessary
373374
SetRebootFlag true
375+
Return
376+
377+
FlagRebootNecessary:
378+
SetErrorLevel 3010 ; ERROR_SUCCESS_REBOOT_REQUIRED
379+
Return
374380

375381
NoRebootNecessary:
382+
Return
376383

377384
SectionEnd
378385
!endif

0 commit comments

Comments
 (0)
Please sign in to comment.