diff --git a/resources/nsis/NSIS.template.in b/resources/nsis/NSIS.template.in index 6933a45d2..7f2d5b9b9 100755 --- a/resources/nsis/NSIS.template.in +++ b/resources/nsis/NSIS.template.in @@ -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