Sajida_cts
16th July 2005 10:46 UTC
Space Required text on the Directory page
Hi,
My installer executes an msi installation within it and hence the actual space needed is far greater than the "amount" given in the Space Required Text on the Directory page. I tried to add to it using the SpaceTexts command, but all it does is change the "Space Required" text. :cry:
Please suggest a solution where I can change just the no. of MBs which comes up after the Space Required text on the Directory page
Thanks in Advance,
Saaji
Afrow UK
16th July 2005 12:24 UTC
Use SectionGetSize and SectionSetSize.
Use SectionGetSize to get the current size (will be in kB) take away X amount of kB with IntOp (the size of the in MSI installer before compression) and then set the new size with SectionSetSize.
Edit: Best done in .onInit
-Stu
kichik
16th July 2005 12:48 UTC
AddSize is simpler for known file sizes.
Afrow UK
16th July 2005 16:10 UTC
Ah yes of course,
Section
AddSize 500
SectionEnd
(500 in kB)
-Stu
Sajida_cts
18th July 2005 07:00 UTC
Hi guys thanks...:D
That worked but the only prob now is I'll have to calculate the difference between the existing and the required sizes and put it in using Addsize.:(
But that's ok :). I can live with that as long as the results show
Thanks again,
Saaji