Old 30th November 2006, 13:52   #1
mamilo
Junior Member
 
Join Date: Nov 2006
Posts: 43
get full path name

Hi,

I want to get the full path name of $INSDIR as C:bla\bla\
I have used "GetFullPathName $0 $INSDIR" but it doesn't work.
Thanks for any help

mamilo
mamilo is offline   Reply With Quote
Old 30th November 2006, 14:38   #2
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Work fine for me.
Are you sure your path exist?
Quote:
If the path portion of the parameter is not found, the error flag will be set and $x will be empty.
Is this line from script?
Quote:
GetFullPathName $0 $INSDIR
glory_man is offline   Reply With Quote
Old 30th November 2006, 16:46   #3
mamilo
Junior Member
 
Join Date: Nov 2006
Posts: 43
yes "GetFullPathName $0 $INSDIR" is from script. When I use
"GetFullPathName $0 $INSDIR\somedirectory" I get "\somedirectory" as result.
mamilo is offline   Reply With Quote
Old 30th November 2006, 18:24   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It's $INSTDIR not $INSDIR.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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