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
- :
- Get error when calculate disk 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
Oct 26, 2011
03:27 AM
Get error when calculate disk space in pre-install phase
I meeting the same problem. After I use the following code during pre-install phase, I get error result of available disk space by function getAvailableDiskSpace(), this is only happened on NFS disk, not local disk. It is werid, I don't know what cause it.
InstallerResources resource = (InstallerResources)ip.getService(InstallerResources.class);
long spaceAvailable = resource.getAvailableDiskSpace(); //get wrong value: -1
But I can get correct value of available disk space by InstallAnywhere variable $FREE_DISK_SPACE_BYTES$ during install phase. And, we can't get value of this variable during pre-install phase.
Now, The problem is I want this value during pre-install phase. How can i achieve this? Does anyone have any ideas? Any hint will be appreaciated. Thanks.
InstallerResources resource = (InstallerResources)ip.getService(InstallerResources.class);
long spaceAvailable = resource.getAvailableDiskSpace(); //get wrong value: -1
But I can get correct value of available disk space by InstallAnywhere variable $FREE_DISK_SPACE_BYTES$ during install phase. And, we can't get value of this variable during pre-install phase.
Now, The problem is I want this value during pre-install phase. How can i achieve this? Does anyone have any ideas? Any hint will be appreaciated. Thanks.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 14, 2012
02:23 AM
Which kind of error you get?