Old 27th September 2003, 20:33   #1
Cdzitu
Junior Member
 
Join Date: Sep 2003
Location: Campinas-SP, Brasil
Posts: 27
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
Cdzitu is offline   Reply With Quote
Old 27th September 2003, 22:38   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
http://nsis.sourceforge.net/site/ind...&tx_faq_faq=11
Joost Verburg is offline   Reply With Quote
Old 6th October 2003, 02:17   #3
Cdzitu
Junior Member
 
Join Date: Sep 2003
Location: Campinas-SP, Brasil
Posts: 27
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 ...
Cdzitu is offline   Reply With Quote
Old 6th October 2003, 03:17   #4
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
To set the Start directory you should set the $OUTDIR to it before creating the shortcut.

Vytautas
Vytautas 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