I had the following issue last week: after starting the PC and PA Platform, the updater for potable Firefox was started. At the same time the Firefox update was running, the other updates, like OS updates, also kicked in. So there was not enough space for the Firefox update, but there was no error message from the updater. As I started Firefox afterward, the platform informed me about an incomplete installation of Firefox and suggested I manually download it again.
Here are two questions: is it possible in this case to suggest not only the manual download but also a download over the updater once again? Like the update failed, do we have an old and therefore updatable version?
Another question: is it possible to test the amount of free space before updating? Or is it already done, but the space was missing during the update process?
I once again like to suggest some kind of transaction here, so we could roll back to the working version in case of some troubles during the update. But I think this would be too complex?
The installer checks free space before starting to update/install, but doesn't check again during. So, if you run out of space as it's trying to install, it'll fail and can't roll back.
Eventually a 'reinstall' option within the PA.c Platform will be available but I haven't had time to work on it.
Sometimes, the impossible can become possible, if you're awesome!
So, as I thought, this happens during the update itself. Therefore, it is very hard to prevent it. And we don't have transaction management here. So the only improvement that is possible here is an invalidation of an incomplete installation and a re-download of the software? Do I summarize here correctly?
Correct. And as NSIS itself, which the PA.c Installer is based on, doesn't support any of this, it'd be entirely up to me to code.
Sometimes, the impossible can become possible, if you're awesome!