1
!if ${NSIS_VERSION} = v2.45
2
!error "There is a bug in !searchparse which makes this script not compile in NSIS 2.45. Please upgrade to NSIS 2.46 or later and try again."
4
!echo "(If you get a compile error with !searchparse, please upgrade to NSIS 2.46 or later and try again.)"
6
!searchparse ${NSIS_VERSION} "v" V
8
!error "You only have NSIS ${V}, but NSIS 2.46 or later is required for proper Windows 7 support. Please upgrade to NSIS 2.46 or later and try again."