Old 21st August 2007, 18:37   #1
fglaeser
Junior Member
 
Join Date: Aug 2007
Posts: 3
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.
fglaeser is offline   Reply With Quote
Old 21st August 2007, 18:40   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
from the helpfile: "$OUTDIR is used for the working directory. You can change it by using SetOutPath before creating the Shortcut"

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st August 2007, 18:52   #3
fglaeser
Junior Member
 
Join Date: Aug 2007
Posts: 3
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.
fglaeser is offline   Reply With Quote
Old 21st August 2007, 19:10   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Then use full paths with CreateShortcut.
code:
SetOutPath C:\whatever\start\in
CreateShortcut $SMPROGRAMS\MyDir\whatever.lnk $INSTDIR\whatever.exe


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 21st August 2007, 19:12   #5
fglaeser
Junior Member
 
Join Date: Aug 2007
Posts: 3
thaks you.
fglaeser is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump