Old 19th December 2004, 03:24   #1
khsoh
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.
khsoh is offline   Reply With Quote
Old 19th December 2004, 14:42   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try this:
ExecWait '"$0\install.exe" "$1"'

-Stu
Afrow UK is offline   Reply With Quote
Old 21st December 2004, 02:16   #3
khsoh
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).
khsoh is offline   Reply With Quote
Old 21st December 2004, 10:45   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 22nd December 2004, 00:36   #5
khsoh
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
khsoh is offline   Reply With Quote
Old 4th January 2005, 13:15   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
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