Skip to content

Commit e6e1402

Browse files
windows: Add check whether NSIS with large strings is being used
To avoid issues with cleared PATH it is required to use NSIS special build with strings up to 8192 characters long. This patch adds build-time check to installer script, that will protect from attempts to use normal NSIS build. Signed-off-by: Anton Kolesov <[email protected]>
1 parent f88a013 commit e6e1402

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

windows-installer/installer.nsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
!error "arcver varaible must be defined."
3636
!endif
3737

38+
# Check that NSIS build for large strings is used
39+
!if ${NSIS_MAX_STRLEN} < 8192
40+
!error "NSIS_MAX_STRLEN is ${NSIS_MAX_STRLEN} which is less than 8192, \
41+
Please see comments in installer.nsi for details on installing NSIS 'big \
42+
string' version."
43+
!endif
44+
3845
;=================================================
3946
; Settings
4047

0 commit comments

Comments
 (0)