Skip to content
⌘ NSIS Forum Archive

CreateShortCut Start in property

5 posts

fglaeser#

CreateShortCut Start in property

I have a problem when create shortcut, "Start in" property is not my $INSTDIR and my application need start in $INSTDIR. Can I modify this property?? I'm using MUI with MUI_STARTMENU_WRITE_BEGIN macro.

THANKS and sorry about my english.

Facundo.
Anders#
from the helpfile: "$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut"
fglaeser#
If I change the OUTDIR with SetOutPath before create de shortcut, the shortcut are not created in $SMPROGRAMS. I SetOutPath in $SMPROGRAMS\MyDir before create the shortcuts.
kichik#
Then use full paths with CreateShortcut.
SetOutPath C:\whatever\start\in
CreateShortcut $SMPROGRAMS\MyDir\whatever.lnk $INSTDIR\whatever.exe