Better installer.

This commit is contained in:
Martin Rotter 2016-08-18 07:46:59 +02:00
parent 878ee8e5c1
commit 8486b072a6

View File

@ -64,7 +64,9 @@ RequestExecutionLevel admin
!insertmacro MUI_PAGE_INSTFILES
; Offer user to launch the application right when it is installed.
!define MUI_FINISHPAGE_RUN "$INSTDIR\${EXE_NAME}"
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Start ${APP_NAME} now"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchApplication"
!insertmacro MUI_PAGE_FINISH
@ -192,6 +194,10 @@ SectionEnd
;--------------------------------
; Custom functions.
Function LaunchApplication
Exec '"$WINDIR\explorer.exe" "$INSTDIR\${EXE_NAME}"'
FunctionEnd
Function un.RmDirsButOne
Exch $R0 ; exclude dir
Exch