mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
add conditional handling for server-console shortcut
This commit is contained in:
parent
70077591df
commit
6f7663fbae
1 changed files with 8 additions and 0 deletions
|
@ -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@
|
||||
|
||||
|
|
Loading…
Reference in a new issue