Skip to content
⌘ NSIS Forum Archive

Shortcut Problems

4 posts

Ender2070#

Shortcut Problems

Currently I just have this for creating a shortcut but i need the working directory to be binwin\ or else it doesnt work.

CreateShortCut "$SMPROGRAMS\Stellar Frontier\Stellar Frontier.lnk" "$INSTDIR\binwin\frontier.exe" "" "$INSTDIR\binwin\frontier.exe" 0

Can anyone help me?
Vytautas#
Change the $OUTDIR to the required working directory and then create the shortcut. 🙂

Vytautas
Ender2070#
I don't know how. I also have other shorcuts that won't be using that working directory.
n0On3#
this is what you can do:

  SetOutPath "$INSTDIR"
  CreateDirectory "$SMPROGRAMS\${NAME}"
  CreateShortCut "$SMPROGRAMS\${NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
  CreateShortCut "$SMPROGRAMS\${NAME}\Last Log.lnk" "$INSTDIR\Last Log.txt"
  SetOutPath "$INSTDIR\somefolder"
  CreateShortCut "$SMPROGRAMS\${NAME}\Settings.lnk" "$INSTDIR\Settings.ini"