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
totally different value than expected
what kind of calculation NSIS is doing to bring this result?