simplified shortcut creation for nsis installer

This commit is contained in:
Stephen Birarda 2016-01-11 12:25:08 -08:00
parent 7f1c66f529
commit b8966de85e

View file

@ -5,10 +5,8 @@
!define INTERFACE_SHORTCUT_NAME "High Fidelity" !define INTERFACE_SHORTCUT_NAME "High Fidelity"
!define INTERFACE_EXEC_NAME "interface.exe" !define INTERFACE_EXEC_NAME "interface.exe"
!define INTERFACE_ICON_INDEX "0"
!define CONSOLE_SHORTCUT_NAME "Server Console" !define CONSOLE_SHORTCUT_NAME "Server Console"
!define CONSOLE_EXEC_NAME "server-console.exe" !define CONSOLE_EXEC_NAME "server-console.exe"
!define CONSOLE_ICON_INDEX "1"
;-------------------------------- ;--------------------------------
; You must define these values ; You must define these values
@ -709,17 +707,13 @@ Section "-Core installation"
; Conditional handling for interface shortcut ; Conditional handling for interface shortcut
${If} ${SectionIsSelected} ${client} ${If} ${SectionIsSelected} ${client}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${INTERFACE_SHORTCUT_NAME}.lnk" \ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${INTERFACE_SHORTCUT_NAME}.lnk" \
"$INSTDIR\${INTERFACE_EXEC_NAME}" \ "$INSTDIR\${INTERFACE_EXEC_NAME}"
"" \
"$INSTDIR\${INTERFACE_EXEC_NAME}" ${INTERFACE_ICON_INDEX}
${EndIf} ${EndIf}
; Conditional handling for server console shortcut ; Conditional handling for server console shortcut
${If} ${SectionIsSelected} ${server} ${If} ${SectionIsSelected} ${server}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${CONSOLE_SHORTCUT_NAME}.lnk" \ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${CONSOLE_SHORTCUT_NAME}.lnk" \
"$INSTDIR\${CONSOLE_EXEC_NAME}" \ "$INSTDIR\${CONSOLE_EXEC_NAME}"
"" \
"$INSTDIR\${CONSOLE_EXEC_NAME}" ${CONSOLE_ICON_INDEX}\
${EndIf} ${EndIf}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"