Feature costing

2 Messages Forum Options Options
Embed this topic
Permalink
BOB1981
Feature costing
Reply Threaded MoreMore options
Print post
Permalink
Hi,

My installer has a feature tree with sub-features. The costing displayed in the custom setup dialog is good for the sub-feature.
 However at the parent feature level it shows as 0KB. Is there any way I can modify that to show the costing of Total of the sub-features at parent level?

E.g of my custom setup dlg with parent feature selected
Parent Feature

-          Child Feature1

-          Child Feature2

Message displayed is
This feature requires 0KB on your hard drive. It has 2 of 2 subfeatures selected. The subfeatures require 1234KB on your hard drive.

My Q is can we change the text for Parent Feature to show the text totalling the subfeature?

Thanks
BOB1981
Re: Feature costing
Reply Threaded MoreMore options
Print post
Permalink
Hi All,

Finally i have done this as well, Nothing really big in order to deal with this problem, Wix uses Localization file in order to display the text on SelectionSize Event, if you open the WixUI_en-us.wxl you will see the following string for this purpose and display the information.

    <String Id="UITextSelChildCostPos" Overridable="yes">This feature requires [1] on your hard drive.</String>
    <String Id="UITextSelParentCostPosPos" Overridable="yes">This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.</String>
    <String Id="UITextSelChildCostNeg" Overridable="yes">This feature frees up [1] on your hard drive.</String>
    <String Id="UITextSelParentCostPosNeg" Overridable="yes">This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.</String>
    <String Id="UITextSelParentCostNegPos" Overridable="yes">This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.</String>
    <String Id="UITextSelParentCostNegNeg" Overridable="yes">This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.</String>



So in order to display the Parent Total rather then the current solected total and sub features. I changed the following Strind Id`s in a following way.

  <String Id="UITextSelChildCostPos" Overridable="yes">This feature requires [1] on your hard drive.</String>
  <String Id="UITextSelParentCostPosPos" Overridable="yes">This feature requires [4] on your hard drive. It has [2] of [3] subfeatures selected.</String>



So now it shows the Total of the Child Features on selection of the parent features, which in my case is perfect because i dont have any components in my parent features anyways.

SO All you need to do is to Add Wxl (localization file) and override only these string id`s and compile and Bee Happy

:D

Thanks



BOB1981 wrote:
Hi,

My installer has a feature tree with sub-features. The costing displayed in the custom setup dialog is good for the sub-feature.
 However at the parent feature level it shows as 0KB. Is there any way I can modify that to show the costing of Total of the sub-features at parent level?

E.g of my custom setup dlg with parent feature selected
Parent Feature

-          Child Feature1

-          Child Feature2

Message displayed is
This feature requires 0KB on your hard drive. It has 2 of 2 subfeatures selected. The subfeatures require 1234KB on your hard drive.

My Q is can we change the text for Parent Feature to show the text totalling the subfeature?

Thanks