PDA

View Full Version : FeatureCompareSizeRequired and XCopy



DLee65
06-02-2004, 12:45 PM
Hello,

I have a setup that uses XCOPY to copy data from a folder on the data CD to the hard drive. However, when I use FeatureCompareSizeRequired, it is only looking at the file size of the entire setup and not the data files that XCOPY will use.

Is there any way to pad the numbers of MEDIA so that when I call FeatureCompareSizeRequired that the user is properly warned if they do not have enough disk space on the destination drive.

Thanks.

Dan
Installation Engineer

DLee65
06-02-2004, 01:40 PM
I came up with a solution that does not involve the FeatureCompareRequiredSize function. I manually provided the entire required size as a variable and then called GetDiskSpace to obtain the free disk space on TARGETDIR.