Old 10th November 2004, 21:20   #1
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
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
grahama is offline   Reply With Quote
Old 10th November 2004, 23:07   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
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.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 11th November 2004, 06:20   #3
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
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
grahama 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