Needed space calculation![]() Submitted by r.andom on July 7, 2008 - 2:29pm
I ran into this issue when trying to install the OpenOffice.org Portable 2.4.1 release. This issue affects not only OOoP but OOoP is the biggest application. So it's the first one where you run into this problem. The installer calculates the needed space on the flash drive. If there isn't enough space there you can't go on with the installation (button is greyed out). But the calculation doesn't take into account if a previous release of OOoP (that will be overwritten) is installed on the drive in question. The difference between wrong and right calculation is about 250 MB(!) in this case. So it happened to me that the installer didn't allow me to install the new version. I see two options to solve this issue: 1. The clean one: When calculating the needed space on the flash drive the installer has to check whether there is a previous version of the app and how much space it takes. This amount has to be subtracted from the needed space for the new version. 2. Not so clean but maybe easier: If the calculation (done as is) tells there isn't enough space offer a button to ignore this information and go on with the installation. ( categories: )
|


I noticed that too
and posted it back then.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
No solution yet
Thanks for the hint but there wasn't a solution yet.
Bug
It would appear to be a bug in the current PortableApps.com Installer. I thought this had made it into the last release. I'll double-check and post a test version of OO for folks to ensure it works as expected.
Live with purpose.
Please let me know if there is really a bug in the installer ...
... in order to get the fix in the next OpenOffice.org Portable release.
(The space calculation is the same as in 2.4 release without changes.)
A Rev2 could be done if this is needed.
You've paid for Software more or less?
What You need is OSS!
there is
2.4 had the same issue the current release has.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Tomorrow
I'll have a fix for the installer for you tomorrow so we can get the next OpenOffice.org beta out.
Live with purpose.
Actually,
I checked the code and it seems only the data directory is subtracted.
Just simply change that code so that the whole
$INSTDIRis subtracted.Somebody give me a portable video editor... Please!
If ya wanna see my email, go to digitxpsemail.tk (at least for now!)
My dad saved over $850 a month, by switching to Geico! :P
I think you're wrong...
What it actually does in CheckInstallerError:
$3 contains the total drive's free space
$4 contains the size of $INSTDIR
$7 contains the "apparent" free space, accounting for an upgrade.
So:
$7 is set to $3 + $4 (that is, the space we would have on the drive if we remove the entire OpenOfficePortable directory)
Then it sets $4 to the size of $INSTDIR\Data
$7 has $4 removed from it (that is, we won't delete the Data directory, so take that space out of the free space count)
Thus:
The amount of free space that it [should] claim to have when upgrading is: Real free space + Old copy's space, except for Data directory.
This is correct. I'm not sure why it's working. (btw, my brother Ben just tried upgrading to ff3 and experienced the same issue at the same time as I was typing this!)
Chris Morgan (formerly chrism) :-)
Religion = Christian\Christadelphian
Likes_Swearing = false
Portable_App_Developer = true
Fixed
This has been fixed in 0.9.9.4. See here:
http://portableapps.com/node/14520
Live with purpose.