|
|
#1 |
|
Junior Member
Join Date: Jul 2008
Posts: 5
|
When using the LogicLib.nsh, is it just me, or can you not do "not equal" with two strings? I've tried to do something like:
${If} $DB_PWD <> $0 MessageBox MB_ICONEXCLAMATION|MB_OK "The two passwords do not match" Abort ${EndIf} or something similar a few times. It will never run the inner block of code, regardless of whether $DB_PWD and $0 are equal or not. I've now got these scatterered throughout my code: ${If} $DB_PWD == $0 ; This is hack, because for some reason you can't do <> comparison with strings ${Else} MessageBox MB_ICONEXCLAMATION|MB_OK "The two passwords do not match" Abort ${EndIf} I can't believe I'm the first to find this, but I can't find any post or help on something like this. The LogicLib.nsi sample compares integers, but not strings. Note, it works just fine with integers. |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|