Archive: Changing the value shown in Space Required and validating on it


Changing the value shown in Space Required and validating on it
So... I split my installer into two seperate .exes, one "wrapper" installer, and then one "data" installer (for 2 reasons a) makes it easy when the app doesn't fit on 1 CD anymore, which may be soon, and b) allows me to have a really tiny UI for the "data" installer (in order for people to see the billboards behind the installer), yet still have a pretty/function UI for the rest of the installer).

Anyway, here's my problem: The main installer (the only one the user interacts with) says 0.0KB required for the install size, because it pretty much just launches a seperate, silent installer to copy the data. So, how do I tell it that it's actually going to take 937MB, and have the installer not let the user select a drive with less than that much free, etc? Can this be done?

Thanks!


Use the command Addsize


To automate the process a bit you can create a "secret" switch for the second installer that will just use SectionGetSize and will write the result into a known file which you will be able to include into your first installer. If you get it to write `AddSize <total size of sections>' you can simply execute the second installer using !system and that secret switch and !include the resulting file.


Sweet! Thanks!