Prev Previous Post   Next Post Next
Old 17th November 2006, 14:00   #12
Filus
Junior Member
 
Join Date: Feb 2006
Location: Pomerania
Posts: 16
Quote:
Originally posted by niteflyer
Can you detect the line in _your_ source, which causes the error?
Ok, no problem:
In my general nsi file I have sequence of include commands:
code:
!include LogicLib.nsh
!include "${NSHDIR}\loading.nsh"
!include "${NSHDIR}\about.nsh"
!include "${NSHDIR}\services.nsh"
[...]


I include your utils in loading (first time) and in about nsh files. loading.nsh has passed without problems, so compiler goes to about.nsh, and from then to another one nsh where I include nfuUtils directly. It looks:
code:
!ifndef COMMONS_FILES
!define COMMONS_FILES

!include LogicLib.nsh
!include FileFunc.nsh
!include WordFunc.nsh
!include nfUtils.nsh
[...]
!endif



And compiler stops on line where nfUtils are included and produces this log:
code:
!define: "COMMONS_FILES"=""
!include: "C:\Program Files\NSIS\Include\LogicLib.nsh"
!include: closed: "C:\Program Files\NSIS\Include\LogicLib.nsh"
!include: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!include: closed: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!include: "C:\Program Files\NSIS\Include\WordFunc.nsh"
!include: closed: "C:\Program Files\NSIS\Include\WordFunc.nsh"
!include: "C:\Program Files\NSIS\Include\nfUtils.nsh"
Invalid command: !if${Condition}
!include: error in script: "C:\Program Files\NSIS\Include\nfUtils.nsh" on line 566
!include: error in script: "..\src\nsis\files.nsh" on line 28
!include: error in script: "..\nsh\about.nsh" on line 14


Quote:
Seems as if you are using ${nfu.!AppendIf} with an illegal condition:
Hmmm, but I'm not using this (directly in my code at least). I only use ${nfu.Function} and ${nfu.FunctionEnd} in this all "error making" script (including used nsh files).
So, I've made temporary workaround (checking defining of NFUPREFIX before including nfUtils), but it'll be better if I don't have to use it.
Well, also I'll check my code once again and try compile in another machine (and version of NSIS - I use 'long strings' build).
Filus is offline   Reply With Quote
 
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