add conditional handling for server-console shortcut

This commit is contained in:
Stephen Birarda 2016-01-11 10:25:38 -08:00
parent 70077591df
commit 6f7663fbae

View file

@ -5,6 +5,8 @@
!define INTERFACE_SHORTCUT_NAME "High Fidelity"
!define INTERFACE_EXEC_NAME "interface.exe"
!define CONSOLE_SHORTCUT_NAME "Server Console"
!define CONSOLE_EXEC_NAME "server-console.exe"
;--------------------------------
; You must define these values
@ -707,6 +709,11 @@ Section "-Core installation"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${INTERFACE_SHORTCUT_NAME}.lnk" "$INSTDIR\${INTERFACE_EXEC_NAME}"
${EndIf}
; Conditional handling for server console shortcut
${If} ${SectionIsSelected} ${server}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${CONSOLE_SHORTCUT_NAME}.lnk" "$INSTDIR\${CONSOLE_EXEC_NAME}"
${EndIf}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
;Read a value from an InstallOptions INI file
@ -862,6 +869,7 @@ Section "Uninstall"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\${INTERFACE_SHORTCUT_NAME}.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\${CONSOLE_SHORTCUT_NAME}.lnk"
@CPACK_NSIS_DELETE_ICONS@
@CPACK_NSIS_DELETE_ICONS_EXTRA@