RIDER-83597 Add flag RUN_AFTER_FINISH which allows run product after install by default.

(cherry picked from commit c7cb53f41cbcc09022ab2ca70b894ac047af8cf3)

IJ-MR-97634

GitOrigin-RevId: bf09e5e34b7a797fcefcba715e952f405abd2146
This commit is contained in:
Mikhail Filippov
2022-11-06 11:40:10 +00:00
committed by intellij-monorepo-bot
parent 4a6f9bd7d8
commit af6094c3e5
+5
View File
@@ -448,7 +448,11 @@ Page custom ConfirmDesktopShortcut
!define MUI_PAGE_HEADER_TEXT "$(installing_product)"
!insertmacro MUI_PAGE_INSTFILES
!ifdef RUN_AFTER_FINISH
!define MUI_FINISHPAGE_RUN_CHECKED
!else
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!endif
!define MUI_FINISHPAGE_REBOOTLATER_DEFAULT
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
@@ -466,6 +470,7 @@ InstallDir "$PROGRAMFILES\${MANUFACTURER}\${INSTALL_DIR_AND_SHORTCUT_NAME}"
BrandingText " "
Function PageFinishRun
IfSilent +2 +1
!insertmacro UAC_AsUser_ExecShell "" "${PRODUCT_EXE_FILE}" "" "$INSTDIR\bin" ""
FunctionEnd