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,
Fonction Gest Free Space
-
Alex_Ronquillo
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
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)
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

