|
|
#1 |
|
Junior Member
Join Date: Mar 2004
Posts: 29
|
Getting NSIS version
Hello,
Is there a way to check NSIS compiler version in a script and to error out if the wrong version is installed? Thanks, Tieum |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
!if `${NSIS_VERSION}` < 2.3
!error `Unsupported NSIS version` !endif Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2004
Posts: 29
|
Thanks for pointing me to the right variable.
The code does not work though as $NSIS_VERSION is valued to v2.29 So I changed it to: !if `${NSIS_VERSION}` != v2.29 !error `Unsupported NSIS version: ${NSIS_VERSION}. Please use version 2.29` !endif |
|
|
|
|
|
#4 |
|
Forum King
|
there was just a slight syntax error in afrow's example
!if ${NSIS_VERSION} < v2.29 !error "Unsupported NSIS version: ${NSIS_VERSION}. Please use version v2.29 or later" !endif works for me! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|