Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 2

In Basic MSI how to get feature cost to display total size required in disk

I have tried to create CA after costfinalize in UI Sequence and called FeatureGetCostEx function 


FeatureGetCostEx ( MEDIA, "NewFeature1", INSTALLDIR, nvCostHigh, nvCostLow );

Fails: still returns 0 for both nvcost low and high. 

Query : how to get particualr feature size / or component size to calculate and display it in ready to install dialog.

Labels (1)
0 Kudos
3 Replies
Level 6 Flexeran
Level 6 Flexeran

FeatureGetCostEx works only for InstallScript and InstallScript MSI projects.

For BasicMSI project, you can try using MSI function MsiGetFeatureCost.

0 Kudos

thanks for quick response.. ill sure try that MsiGetFeatureCost function.

Guess after CA CostFinalize there will be enteries in the ReserveCost table right. is it possible to read those entries in the Reserve Cost table using installscript CA ?
0 Kudos