mbnoimi
22nd November 2011 20:58 UTC
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
Anders
22nd November 2011 21:34 UTC
GetFullPathName
Afrow UK
22nd November 2011 22:34 UTC
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
23rd November 2011 09:00 UTC
Originally posted by Anders
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
23rd November 2011 09:02 UTC
Originally posted by 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
Your note is absolutely right but I'm using two installers so I'm sure there will not be any problem in paths.