View Full Version : How much space is exactly needed?
wysiwyg
10-29-2002, 08:48 AM
The size of my released CD is only about 150MB. However, the customer needs ~350MB to install. Is there a way to determine amount of size needed? Not just reserveCost size but TOTAL size.
Thank you.
_doog_
10-30-2002, 05:17 AM
do you mean at install time or at setup creation time?
wysiwyg
10-30-2002, 07:01 AM
I guess I mean whatever is greater. As in what would be needed for a successful install.
_doog_
10-30-2002, 07:14 AM
There is a MSI property called
OutOfDiskSpace
which will be set if there is not enough space available on all volumes
The Properties
PrimaryVolumeSpaceAvailable
PrimaryVolumeSpaceRemaining
PrimaryVolumeSpaceRequired
give you a hint about the amount of diskspace needed
the properties are valid after the CostFinalize Action
if you need a better calculation, there is the
ComponentCosts Property of the Session object
(see platform sdk)
wysiwyg
10-30-2002, 07:19 AM
Thanks _doog_ !
Did you see my other post on how to get the size of an included MSI that will be run using a CA (nested install)? Maybe you can help me with that too!
_doog_
10-30-2002, 07:48 AM
i don't think that this is possible
i would use the reserve cost table for an nested installation, and use a value of 2.5 the uncompressed installation size
RobertDickau
10-30-2002, 02:30 PM
For background information, please see the question "Why is the disk space consumed by the installation so much larger than the actual sizes of the files I am installing?", at http://www.microsoft.com/windows2000/community/centers/management/msi_faq.asp.
wysiwyg
10-30-2002, 02:48 PM
It would be ideal if MSI could check for the disk space it needs according to that formula and prompt the user if not enough space is available? Instead, it seems this is something we need to calculate and add in. Is this true?
RobertDickau
10-30-2002, 02:51 PM
In general, MSI does compute this and warn the user if they don't have enough disk space; but MSI can't compute the cost of custom actions, so that can lead to troubles...
smsinstall
10-25-2005, 09:03 AM
I understand that MSI calculates disk space needed for installation. The problem is disk space needed for custom actions. I have a custom action that installs .NET framework. The result of the custom action is much more needed disk space. What is the best way to see whether user has enough disk space and warn the user if there is not enough disk space?
In this case, should I write my own custom action to detecting the amiable disk space and come up with my own mechanism of warnings, etc?
Any help is appreciated.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.