Archive: Problems with creating shortcut ...


Problems with creating shortcut ...
Hi ... I'm doing a Counter-Strike pack and i'm using NSIS to make the installer ... But i'm having problems while using the command "CreateShortcut". I need to create a shortcut with this path and these parameters for example:

C:\PATH\hl.exe -console -game cstrike +localinfo mm_gamedll podbot/podbot.dll

And i need to make this shortcut start in:

C:\$INSTDIR

But i can't do it ... Everytime it appears like this ...

C:\SIERRA\HL\cstrike\PODBot\WPTDefault

* Assuming $INSTDIR=Sierra\HL

I think this happens because on the parameters list the podbot.dll file is in this dir "cstrike\PODBot\WPTDefault".

I dont know if i was clear while explaining ... i'm the last not-cvs version of nsis ... and MUI ... grateful ... Daniel Coradi


http://nsis.sourceforge.net/site/ind...&tx_faq_faq=11


Well, i did like you said ... Used this string:

CreateShortcut "$SMPROGRAMS\JCP\Counter-Strike.lnk" "$INSTDIR\hl.exe" "-console -game cstrike"

And it stills start in: C:\$INSTDIR\cstrike ...

Grateful ...


To set the Start directory you should set the $OUTDIR to it before creating the shortcut.

Vytautas