The information in this article applies to:
SUMMARYThe Microsoft Setup Toolkit for Windows GetCopyListCost() function can be used to compute the cost needed to install the files in the copy list to the target. The syntax for GetCopyListCost() is:
szExtras$ is an input parameter to GetCopyListCost(), and szCosts$ and
szNeededs$ are output parameters. All three parameters are symbols
whose values are lists of up to 26 integers. The nth integer in the
list will have the information about the nth alphabetic drive, where
the drives are A-Z.
If there will be extra costs beyond the cost of copying and decompressing the files in the copy list, these costs should be included in szExtras$. For example, to specify an extra cost of 5000 bytes on the Windows drive, the code might resemble the following:
If there are no extra costs, "" can be passed for szExtras$.
On return, the value of szCosts$ will be a list of 26 integers, which are the total costs for drives A-Z of copying the files in the copy list and of the costs in szExtras$. The value of szNeededs$ will be a list of 26 integers, which are the total costs for each drive--the amount of free space on the drive. For any drive that will not be affected by the extra costs or by copying the copy list, szNeededs$ will report 0. MORE INFORMATIONIn computing szCosts$ and szNeededs$, all files sizes, as well as the costs in szExtras$, are rounded up to the nearest cluster. The integers in the lists will always be some multiple of the cluster size for the appropriate drive. The cluster sizes in bytes for various disks are as follows:
The cost of each file on the copy list is calculated as follows. The
properties mentioned are from the file's property list in the .INF
file:
Note that GetCopyListCost() computes the copy cost incorrectly for split
files that already exist at the target. It erroneously reports that
most of the space used by the file will be freed.
Additional query words: 3.10 no32bit MSSETUP tool kit
Keywords : kb16bitonly |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |