|
|
#1 |
|
Junior Member
Join Date: Dec 2004
Posts: 3
|
Problem with building VIM
Hi, I tried to build VIM (http://www.vim.org) and came across problems when using NSIS 2.03
For some reason, the ExecWait calls are not executed when I use NSIS 2.03. However, everything works ok if I use NSIS 2.02. I did try putting quotes: ExecWait '"$0\install.exe" $1' But that did not work. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Try this:
ExecWait '"$0\install.exe" "$1"' -Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2004
Posts: 3
|
Hi,
I managed to narrow down the problem. Here is the code with some debug MessageBox: Section "Native Language Support" SectionIn 1 3 MessageBox MB_OK "arg0 is $0 In NLS before 1st SetOutPath" SetOutPath $0\lang MessageBox MB_OK "arg0 is $0 In NLS after 1st SetOutPath" File /r ${VIMRT}\lang\*.* MessageBox MB_OK "arg0 is $0 In NLS before 2nd SetOutPath" SetOutPath $0\keymap MessageBox MB_OK "arg0 is $0 In NLS after 2nd SetOutPath" File ${VIMRT}\keymap\README.txt File ${VIMRT}\keymap\*.vim SetOutPath $0 File ${VIMRT}\libintl.dll SectionEnd For the first two MessageBox calls, $0 is "C:\Program Files\vim\vim63". But the third and fourth MessageBox calls (i.e. before 2nd SetOutPath, $0 is "C:\Program Files\vim\vim63\lang". Why is $0 being changed? None of the earlier statements should change $0 (I think). |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Try commenting out each command in between each message box to find out what is changing the variable.
-Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2004
Posts: 3
|
It is the File /r command. Somehow, the other File commands (without the /r) does not mess up the $0 variable
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
I have opened a bug report:
http://sourceforge.net/tracker/index...49&atid=373085 You can track it there. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|