Abort if StrLen is 0 , How?
Hi all,
I want to "Abort the Installation if length of a particular string is 0". How can I do that as there is no "If" statement in NSIS.
Thanks in advance
Sreedhar Kumar
Archive: Abort if StrLen is 0 , How?
Abort if StrLen is 0 , How?
Hi all,
I want to "Abort the Installation if length of a particular string is 0". How can I do that as there is no "If" statement in NSIS.
Thanks in advance
Sreedhar Kumar
Section ""
StrCmp $1 "" "" prog_continue
Abort
prog_continue:
; Code for continuing goes here
SectionEnd
Or with the LogicLib:
!include LogicLib.nsh
#...
StrLen $0 $1
${If} $0 = 0
Abort
${EndIf}