install only if HD has free space - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

install only if HD has free space

I am needing to install an application, but only if there is at least 6 gig of free space on the hard drive. Can anyone point me in the right direction.

TIA!!!
Perrin
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Perrin,

This is done automatically by Windows Installer. The disk costing is made under "VerifyReadyDlg" ("FileCost" standard action) and a dialog will be displayed in case of not enough free space on the disk. The package cannot be installed until enough free space is available on the disk.

Also you can reserve additional space for a component. This can be done in the "Organization" page:
http://www.advancedinstaller.com/user-g ... rties.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

I have looked at the instructions can can not seem to find excately how to do this. Is there an example somewhere?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Perrin,

What exactly you don't understand? Please give me more details.

This is handled by default by Windows Installer. A dialog will be displayed in case there is not enough space (to install selected features) on the selected drive.

To reserve additional space for a component, switch the "Organization" page, select the component and choose "Reserve additional disk space for this component" option.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
perrin_wolf
Posts: 28
Joined: Mon May 07, 2007 11:16 pm

I have tried to setup "reserve additional space", on a test install I set to 99999999999999999999999999999999 bytes, to see what would happen when there was not enough space on the machine- test pc only have 7 g of free space. The install is running and I get not errors aobut free space.

thanks for any help.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The "ReserveLocal" column from "ReserveCost" table is restricted to "DoubleInteger" size (which means 2,147,483,647 bytes). This mens that you can reserve maximum 2 Gb of additional disk space for a component.

You can read more about this here:
http://msdn2.microsoft.com/en-us/library/aa371226.aspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”