alon2580
Level 5

pre-install summary panel

I know that the disk space in that panel is taken from the $FREE_DISK_SPACE_BYTES$ variable. the question is- is there a way to make it appear in MG or GB instead of bytes?
10x
Labels (1)
0 Kudos
5 Replies
pv7721
Level 20

As the name of the variables says it, (it contains BYTES) it'll always be displayed in bytes. You can use this variable and divide it accordingly in order to display it in MB or GB.
0 Kudos
alon2580
Level 5

10x for the quick reply.
I know it is in byes(as I said in the questions)- my question was:
is there a way to customize the panel to display the free space in MB or GB instead of bytes
0 Kudos
jerome_IA
Level 9

I am looking for the same thing and didn't get it working yet.

The pre-install summary panel displays:

Disk Space Information (for Installation Target): ****
Required: 3*443*161 bytes ****
Available: 69*670*903*808 bytes

This is not very easy to read so I would also like to get those values in Mega or Giga bytes.

Unfortunately, the variables REQUIRED_DISK_SPACE_BYTES & FREE_DISK_SPACE_BYTES cannot be read in "pre-install", those are empty when pre-install summary display them !!?
Then they are readable in "install" ... but it's too late 😞

Do I made something wrong (IA 2008 VP1)
0 Kudos
purcellk24
Level 7

Try using the getAvailableDiskSpace() method in the InstallerResources interface. There is also the getRequiredDiskSpace() method. Then you can convert them yourself.
0 Kudos
jerome_IA
Level 9

Cool, many thanks.

Also I found the work already done at http://kb.acresso.com/selfservice/viewContent.do?externalID=Q113169
0 Kudos