Archive: Shortcut Problems


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?


Change the $OUTDIR to the required working directory and then create the shortcut. :)

Vytautas


I don't know how. I also have other shorcuts that won't be using that working directory.


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"