Skip to content

Commit

Permalink
fix: NSIS Installer hangs when being run silently
Browse files Browse the repository at this point in the history
Closes #616
  • Loading branch information
develar committed Jul 31, 2016
1 parent 3418239 commit d0a4f90
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions templates/nsis/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ Function un.onInit
FunctionEnd

Section "install"
SetDetailsPrint none

!ifdef ONE_CLICK
!ifdef HEADER_ICO
SpiderBanner::Show /MODERN /ICON "$PLUGINSDIR\installerHeaderico.ico"
!else
SpiderBanner::Show /MODERN
!endif
!endif
${IfNot} ${Silent}
SetDetailsPrint none

!ifdef ONE_CLICK
!ifdef HEADER_ICO
SpiderBanner::Show /MODERN /ICON "$PLUGINSDIR\installerHeaderico.ico"
!else
SpiderBanner::Show /MODERN
!endif
!endif
${EndIf}

!insertmacro CHECK_APP_RUNNING "install"

Expand Down Expand Up @@ -104,13 +106,15 @@ Section "install"
!insertmacro customInstall
!endif

!ifdef ONE_CLICK
# otherwise app window will be in backround
HideWindow
!ifdef RUN_AFTER_FINISH
Call StartApp
${IfNot} ${Silent}
!ifdef ONE_CLICK
# otherwise app window will be in backround
HideWindow
!ifdef RUN_AFTER_FINISH
Call StartApp
!endif
!endif
!endif
${EndIf}
SectionEnd

Section "un.install"
Expand Down

0 comments on commit d0a4f90

Please sign in to comment.