This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: is there any way to calculate dissk space in pre-install phase
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2009
04:17 AM
is there any way to calculate dissk space in pre-install phase
Hi,
Is there any way to calculate disk space requirements in the pre-install phase.
I think we have two variables $REQUIRED_DISK_SPACE_BYTES$ and $FREE_DISK_SPACE_BYTES$ which are available during install phase,but i want these two values prior to install phase i.e during pre-install phase.
Please help me out.
Thanks,
vijji123
Is there any way to calculate disk space requirements in the pre-install phase.
I think we have two variables $REQUIRED_DISK_SPACE_BYTES$ and $FREE_DISK_SPACE_BYTES$ which are available during install phase,but i want these two values prior to install phase i.e during pre-install phase.
Please help me out.
Thanks,
vijji123
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 17, 2009
10:36 AM
Use custom action with code like
InstallerResources resource = (InstallerResources) proxy.getService(InstallerResources.class);
long spaceRequired = resource.getRequiredDiskSpace()
But it works not precisely, especially when you have 3rd party jars included as dependency for custom code - it doesn't calculate them
InstallerResources resource = (InstallerResources) proxy.getService(InstallerResources.class);
long spaceRequired = resource.getRequiredDiskSpace()
But it works not precisely, especially when you have 3rd party jars included as dependency for custom code - it doesn't calculate them
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 17, 2009
09:36 PM
Thanks, for u r reply.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2011
05:03 AM
I meeting the same problem, and I can't get correct return value of getAvailableDiskSpace(), it only happened on NFS disk, not local disk.
InstallerResources resource = (InstallerResources)ip.getService(InstallerResources.class);
long spaceAvailable = resource.getAvailableDiskSpace(); //return -1
Does anyone know why? Or Is there any other way to get available disk space during pre-installing phase?
InstallerResources resource = (InstallerResources)ip.getService(InstallerResources.class);
long spaceAvailable = resource.getAvailableDiskSpace(); //return -1
Does anyone know why? Or Is there any other way to get available disk space during pre-installing phase?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2011
06:50 AM
wangnijie860304, I also wonder about it ..