To express the size in MB, you need to add up all of the results for Get Component Space for each component/web media block/feature. Note that there is currently a bug and leaving Get Component Space blank does not get total required space, but OFFLINE CONTENT, so if you have any offline content, you will need to add that as well.
That result will be expressed in bytes. Knowing there are 1048576 Bytes in a MB, you will have to divide your result by 1048576. Note that this value will be rounded
That result won't be formatted.
Then, you need to determine the size of the result and insert commas appropriately.
Here's sample code:
Code: Select all
~InstallAware Clipboard Data~
~MessageBox~
~{C65FC3D5-991A-48AF-BA1E-86AA80277604}~
~fileSize (edited)~
~E = $fileSize$~
~0~
~1~
~~
~End~
~{65A90C48-EE9F-4B88-AE72-0EE6585CDDF7}~
~End~
~{7A2AAFB9-A87A-4EDE-B34E-FC52E490D6E1}~
~Set Variable~
~{7293158F-8B5D-4A73-BB42-B63318676A55}~
~fileSize$MYAH$MYAH$FALSE~
~$first$,$second$~
~Parse String~
~{FBC5C374-5347-4CB8-8E48-A1E49366882B}~
~$fileSize$~
~1~
~first~
~second~
~2~
~FALSE~
~FALSE~
~Comment~
~{9E7CDF7C-26CA-4895-9A7E-9060B62C34F8}~
~between 1,000 9,999~
~Else~
~{E9D527CB-A582-4E25-986A-7CB054BAE0E8}~
~If~
~{7ED45C13-6953-46B2-BE68-C3AF9B125CBB}~
~fileSize~
~2~
~9999~
~FALSE~
~If~
~{99117E87-0A9E-4A36-823F-A8CBE03EF36E}~
~fileSize~
~2~
~999~
~FALSE~
~Set Variable~
~{9E964162-91C5-445A-9CB7-CBE168F4F574}~
~second$MYAH$MYAH$FALSE~
~~
~Set Variable~
~{31AC5326-0A04-4205-A3BF-EE3802757C25}~
~first$MYAH$MYAH$FALSE~
~~
~Comment~
~{99B38B45-1D8F-4F88-AA61-00ABA8AABAF0}~
~~
~MessageBox~
~{CC2C8C41-31BF-4D13-A90F-399F7E4EC85B}~
~filesize~
~F = $fileSize$~
~0~
~1~
~~
~Comment~
~{0A8782A9-1B67-4ACA-9D4E-56D47351314D}~
~~
~Mathematics~
~{5D67F2F1-0EC2-4108-A49E-CE48B78D823E}~
~$fileSize$~
~1048576~
~3~
~fileSize~
~Comment~
~{F9517A4C-F9AB-44B4-80CE-FCF49A30F206}~
~~
~Set Variable~
~{79C4904A-3A31-4A4B-BA96-B8348A9E4097}~
~fileSize$MYAH$MYAH$FALSE~
~9589634592~