|
|
#1 |
|
Junior Member
Join Date: Aug 2008
Location: Sao Paulo - Brazil
Posts: 5
|
problem with calc
Hi,
I am collecting the size of a HD on a remote server using WMIC this way: Strcpy $ R0 '"$ SYSDIR \ cmd.exe" / c "wmic / node: SRVAPS04 volume where (DriveLetter like"D:") get Capacity | more +1"' nsExec ExecToStack :: $ R0 This correctly returns the value in bytes ($R2 = 163370233856), but when I try to calculate something with the value returned is the result of wrong calculation ex.: IntOp $R2 $R2 * 1 returns 161476608 totally different value than expected what kind of calculation NSIS is doing to bring this result?
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
NSIS uses 32-bits. Use System::Int64Op.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2008
Location: Sao Paulo - Brazil
Posts: 5
|
Thanks Afrow... thats it!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|