Skip to content
⌘ NSIS Forum Archive

Path outside installer path

5 posts

mbnoimi#

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
    SetOutPath $EXEDIR
SetOutPath ..\src
MessageBox MB_OK $OUTDIR
Afrow UK#
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
mbnoimi#
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#
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.