Page 1 of 1

Fonction Gest Free Space

Posted: Thu May 29, 2008 4:49 am
by AH-NP
Hi,

In the example, if the free disk space is equals to 13000000000 (13 GO), the variable DISK_SPACE = 13 GO.
In the if condition, DISK_SPACE is Greater than 1.5 GO, but I have the Message Box while it should not.
Have you a solution please ?

Get Free Space on C: into variable DISK_SPACE
if Variable DISK_SPACE not Greater Than 1500000000
MessageBox: $TITLE$ Setup Error, This product requires at least 1.5
GB space disk.
Setup cannot continue.
end

Thanks,

Posted: Thu Jun 05, 2008 6:10 pm
by Alex_Ronquillo
This has been already answer through the support system. However, I am including it here for reference to somebody with the same issue:
The reason why this is happening is because after the nine digit IA start comparing both numbers as strings. However, we found a workaround for this. You have to use the following line of code:

Parse String $DISK_SPACE$ into Variables DISK_SPACE and (Split at position from end)

In the configuration window for this function, you have to remove the last 3 digits of your DISK_SPACE string and return the result in DISK_SPACE again. Then you have to remove 3 positions to your minimun required space (1500000)