Skip to content

Commit

Permalink
Start menu shortcuts are optional in the installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Sep 24, 2021
1 parent ca1a04d commit d12a84a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions installer/clink.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ Section "!Application files" app_files_id
File ${CLINK_BUILD}\clink.bat
File ${CLINK_BUILD}\clink.html

; Create a start-menu shortcut
;
StrCpy $0 "$SMPROGRAMS\clink\${CLINK_VERSION}"
CreateDirectory $0
CreateShortcut "$0\Clink v${CLINK_VERSION}.lnk" "$INSTDIR\clink.bat" 'startmenu --profile ~\clink' "$SYSDIR\cmd.exe" 0 SW_SHOWMINIMIZED
CreateShortcut "$0\Clink v${CLINK_VERSION} Documentation.lnk" "$INSTDIR\clink.html"

; Create an uninstaller and a shortcut to it.
;
StrCpy $1 "clink_uninstall_${CLINK_VERSION}.exe"
Expand Down Expand Up @@ -152,6 +145,16 @@ Section "!Application files" app_files_id
CreateDirectory $LOCALAPPDATA\clink
SectionEnd

;-------------------------------------------------------------------------------
Section "Add shortcuts to Start menu"
SetShellVarContext all

StrCpy $0 "$SMPROGRAMS\clink\${CLINK_VERSION}"
CreateDirectory $0
CreateShortcut "$0\Clink v${CLINK_VERSION}.lnk" "$INSTDIR\clink.bat" 'startmenu --profile ~\clink' "$SYSDIR\cmd.exe" 0 SW_SHOWMINIMIZED
CreateShortcut "$0\Clink v${CLINK_VERSION} Documentation.lnk" "$INSTDIR\clink.html"
SectionEnd

;-------------------------------------------------------------------------------
Section "Autorun when cmd.exe starts"
SetShellVarContext all
Expand Down

0 comments on commit d12a84a

Please sign in to comment.