![]() |
#1 |
Junior Member
Join Date: Aug 2009
Posts: 10
|
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 |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Aug 2009
Posts: 10
|
ah ok never mind I think I need System::Int64Op.
|
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
If you use LogicLib.nsh, if/when NSIS gets internal support for this, you will get the upgrade for free.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|