Skip to content
⌘ NSIS Forum Archive

Compare large numbers

3 posts

st80rules#

Compare large numbers

Hi,

I have this code:

${If} $1 < 8300000
StrCpy $2 $APPDATA 2
MessageBox MB_ICONSTOP|MB_RETRYCANCEL "Insufficient free space on $2, at least 8.5 Gb need to be available (found $1)." IDRETRY check_disk_space IDCANCEL 0
Abort
${EndIf}

and I get a message dialog saying "(found 2780540944)"

Is there an issue comparing 64 bit numbers? Should I use IntCmp instead?

Thanks

Normand
Anders#
If you use LogicLib.nsh, if/when NSIS gets internal support for this, you will get the upgrade for free.