- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- In Basic MSI how to get feature cost to display total size required in disk
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
ie.,
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
FeatureGetCostEx works only for InstallScript and InstallScript MSI projects.
For BasicMSI project, you can try using MSI function MsiGetFeatureCost.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
You can refer below community thread on ReserveCost table query:
https://community.flexera.com/t5/InstallShield-Forum/ReserveCost-table-question/m-p/25662
To access msi database tables:
https://resources.flexera.com/web/pdf/archive/msiaccess.pdf
https://community.flexera.com/t5/InstallShield-Forum/How-to-read-feature-table-from-direct-editor/m-p/36275
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)