|
|
#1 |
|
Junior Member
|
Trouble with GetFullPathName
Hello,
I'm using NSIS 2.06 and there's a place in my code where GetFullPathName doesn't seem to work. I'm using the MUI interface and call the MUI_DIRECTORY_PAGE this way : code: In the Defaults.onLeaveDirPage, I need to be sure that $INSTDIR is a full path so I do : code: But this doesn't work as I've always INSTDIR as a short path if I type it as a short path on the MUI_DIRECTORY_PAGE. I've try the following things without success: 1. GetFullPathName $R1 "$INSTDIR" StrCpy $INSTDIR $R1 2. GetFullPathName $R1 $\"$INSTDIR$\" StrCpy $INSTDIR $R1 3. GetFullPathName $INSTDIR "$INSTDIR" I can't see what to try now to make this work. Any idea ? |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
Call GetLongPathName using the System plug-in.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
|
Thank you Kichik, I'll try this.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|