Old 26th July 2006, 12:53   #1
a.kurtinaitis
Junior Member
 
Join Date: Jul 2006
Posts: 2
!if does not work

Hello,
I can not figure out, why the compile time command !if does not work in any of my scripts.
I am using the MakeNSIS v2.06 on linux and can not compile even the script consisting only from the documented (http://nsis.sourceforge.net/Docs/Chapter5.html#5.4.5) example:

!if 1 < 2
!echo "1 is smaller than 2!!"
!else if ! 3.1 > 1.99
!error "this line should never appear"
!else
!error "neither should this"
!endif

It returns the following:
Invalid command: !if
Error in script "test.nsi" on line 1 -- aborting creation process

Was the command removed recently from NSIS or am I doing something wrong?

Thanks
Andrius
a.kurtinaitis is offline   Reply With Quote
Old 26th July 2006, 13:07   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You'd find that !if came in NSIS 2.15 if you checked the NSIS changelog

-Stu
Afrow UK is offline   Reply With Quote
Old 26th July 2006, 13:10   #3
a.kurtinaitis
Junior Member
 
Join Date: Jul 2006
Posts: 2
[QUOTE]Originally posted by Afrow UK
[B]You'd find that !if came in NSIS 2.15 if you checked the NSIS changelog

Thanks, did not think that it changes so fast.
Andrius
a.kurtinaitis 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