Old 22nd November 2011, 20:58   #1
mbnoimi
Junior Member
 
Join Date: Aug 2008
Posts: 7
Question Path outside installer path

Hi guys,

I just want to know how can I change $OUTDIR var to path outside installer path?

I tried to use this dummy code but it didn't work! it gave me "..\src" where is should be c:\src where the installer sited in c:\bin
code:
SetOutPath $EXEDIR
SetOutPath ..\src
MessageBox MB_OK $OUTDIR

mbnoimi is offline   Reply With Quote
Old 22nd November 2011, 21:34   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
GetFullPathName

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 22nd November 2011, 22:34   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Don't use relative paths, i.e. use $EXEDIR\..\src. If someone runs your installer from a different working/current directory you will have problems.

Stu
Afrow UK is offline   Reply With Quote
Old 23rd November 2011, 09:00   #4
mbnoimi
Junior Member
 
Join Date: Aug 2008
Posts: 7
Quote:
Originally Posted by Anders View Post
GetFullPathName
This didn't fix the issue, it gives me the path only! I just want to change current path over the installer one.
mbnoimi is offline   Reply With Quote
Old 23rd November 2011, 09:02   #5
mbnoimi
Junior Member
 
Join Date: Aug 2008
Posts: 7
Quote:
Originally Posted by Afrow UK View Post
Don't use relative paths, i.e. use $EXEDIR\..\src. If someone runs your installer from a different working/current directory you will have problems.

Stu
Your note is absolutely right but I'm using two installers so I'm sure there will not be any problem in paths.
mbnoimi is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
$outdir, nsis, path

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