Archive: relative path stupidity


relative path stupidity
this does not work...probably for obvious reasons
ifFileExists "../Library/myfile.qtl" exist noexist

I need to get the path of the nsis installer .exe wherever it may be on the user's hard drive. The actual folder directory is:
Fonovisa Player [folder]
- nsisInstaller.exe
- Library [folder]
--myfile.qtl

I am trying to build an alternate installer that does not write any reg keys or files
just a straight download of a zipped folder with all the stuff inside
g


Try IfFileExists "$EXEDIR\Library\myfile.qtl". One reason is that, for files on local computer, you should use back-slashes "\". Another reason is that ".." goes to a lower folder level, and as you said, the Library folder is inside the "Fonovisa Player" folder in which the installer is.


many thanks deguix :)
using $EXEDIR did the trick...
do not know why I put / slashes in the post as my actual code was using \ slashes...taste of future senility I guess ;)
g