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 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Feature-costing-tp1307593p1316521.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to