Hi:
Look like there is a bug in using the "if Variable MyVal1 not Greater Than" command if MyVal1 is a huge number ...
Here are my tests for
if Variable MyVal1 not Greater Than 500000000
MessageBox: Test result, Bad, $MyVal1$ lesser than 500000000
Terminate Installation
else
MessageBox: Test result, Good, $MyVal1$ greater than 500000000
Terminate Installation
end
Here are results:
- correct comparison if
Set Variable MyVal1 to 1500000000
- incorrect comparison if
Set Variable MyVal1 to 125000000000
It pops up a message box saying "125000000000 lesser than 500000000" !!!!
I need to do a comparison to see if my systems drive is less than 500 MB. And the results of "Get free space" is always in bytes; which meant huge number.
Is there any suggested workaround for this issue? is there any way to "Get free space" in MB?
Thanks
Nhan
Bug in comparing huge numbers????
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Bug in comparing huge numbers????
Dear Nhan,
many thanks for reporting the possoble problem that you seems to have found.
I will check on it later on and I will back to inform you.
Regarding the question to have Get free space in MB, at moment the only thing that you can do, it is to use the mathematics command to complete operation on your returned value.
es: RESULT = mYVAR / 1000
Regards
many thanks for reporting the possoble problem that you seems to have found.
I will check on it later on and I will back to inform you.
Regarding the question to have Get free space in MB, at moment the only thing that you can do, it is to use the mathematics command to complete operation on your returned value.
es: RESULT = mYVAR / 1000
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Bug in comparing huge numbers????
Has this problem been fixed in later versions of Installaware? Using X2, I am trying to see if the main drive has at least 2GB of free space as our users tend to create large data files. The comparison works on systems with 20-40 GB of free space, but fail is you have a lot of free space 750 GB or more. I've managed to come up with a workaround, but it would be nice to know if I need to be careful of this in other instances.
Who is online
Users browsing this forum: No registered users and 151 guests