Old 30th June 2005, 10:53   #1
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 42
fatal error while compiling

i'm getting error:
"fatal error while compiling myscript.nsi". dialog title
is 4112.
first troubleshooting seems to show it's related to lzma compressor: if i use instead set compressor /solid zlib
i don't get the error.
strange to say, issue arise first time today on a script just a little bit modified.
nothing found in other posts.
jsbach is offline   Reply With Quote
Old 30th June 2005, 11:47   #2
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
Try to reinstall your NSIS!
BioDuo is offline   Reply With Quote
Old 30th June 2005, 14:48   #3
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 42
thanks not there the issue

it's not a problem of nsis installation for sure. still digging into it.
thanks.
jsbach is offline   Reply With Quote
Old 30th June 2005, 17:23   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
What's the exact NSIS version you're using? Can you attach a Dr. Watson log?

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
Old 1st July 2005, 16:21   #5
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 42
the cause was...

...an error by me but don't know if it is normal anyway. i can explain.

i've a nsis script generator&compiler (written in other language) that create the .nsi i need. Inside the nsis script i use the GetVersion function (found somewhere in this forum) to get at compile time the version of main executable. Even the GetVersion function is auto-generated.
Well: there was a bug in the script generator that made the entire getversion function duplicated, but as i launch makensisw /v4 ....getversion.nsi and after that makensiw mainprogram.nsi (which uses GetVersion) at first i didn0t understand what's happened.

Actually i had two '!define File "c:\myapp.exe"'
lines: the error shown was on that.

OutFile "GetVersion.exe"
!define File "c:\myapp.exe"
Function .onInit
GetDllVersion "${File}" $R0 $R1
IntOp $R2 $R0 / 0x00010000
IntOp $R3 $R0 & 0x0000FFFF
IntOp $R4 $R1 / 0x00010000
IntOp $R5 $R1 & 0x0000FFFF
StrCpy $R1 "$R2.$R3.$R4.$R5"
FileOpen $R0 "..\GetVersion.txt" w
FileWrite $R0 '!echo "${File} version: $R1"$\r$\n!define Version "$R1"'
FileClose $R0
Abort
FunctionEnd
Section
SectionEnd
jsbach is offline   Reply With Quote
Old 1st July 2005, 16:42   #6
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
You can use the MoreInfo plugin as replacment for GetVersion for stabler version extracting.

http://nsis.sourceforge.net/wiki/MoreInfo_plugin

Comes with examples and source...

"Just do it"
onad is offline   Reply With Quote
Old 1st July 2005, 22:35   #7
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 42
thanks

thanks onad: sounds good.
btw: the link is not working. searching the forum i got MI r1.01...
jsbach 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