Skip to content
⌘ NSIS Forum Archive

Abort if StrLen is 0 , How?

3 posts

sreedhar_kumar#

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
flizebogen#

Section ""

StrCmp $1 "" "" prog_continue
Abort

prog_continue:
; Code for continuing goes here



SectionEnd

Assuming that $1 contains you value