Bug in comparing huge numbers????

Got a problem you cannot solve? Try here.
ttcn2k4
Posts: 31
Joined: Wed Feb 01, 2012 10:04 am

Bug in comparing huge numbers????

Postby ttcn2k4 » Wed Mar 07, 2012 12:29 pm

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bug in comparing huge numbers????

Postby FrancescoT » Thu Mar 08, 2012 8:19 am

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
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

rentzk
Posts: 37
Joined: Sun Aug 27, 2006 10:01 pm

Re: Bug in comparing huge numbers????

Postby rentzk » Thu Dec 10, 2015 8:01 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 151 guests