!if command not working
Please tell me what is wrong with the following script:
!define FW_FILE AD600Here are the important parts from compiler's output log window:
>!if ${FW_FILE}==AD600
!define FW_NAME "OMEGA 600"
>!else
!echo "FW_FILE=${FW_FILE}"
!error "Unknown firmware filename defined!"
>!endif
Why is second branch after !else executed instead of first one when the condition is met???MakeNSIS 2.15 - Copyright 1999-2006 Nullsoft, Inc.
error: Unknown firmware filename defined!
>Processing script file: "D:\firmware_types.nsi"
>!define: "FW_FILE"="AD600"
>FW_FILE=AD600 (D:firmware_types.nsi:5)
!
>Error in script "D:\firmware_types.nsi" on line 6 -- aborting creation process
>