'Displaying MSI version parts at the Wix Burn Bundle level (to display in title / caption)

I've discovered how to access the parts within the MSI/Product tag. But my goal was to set the caption of the burn installer based on the Major/Minor version number.

This code below is the summary of what I tried to do, but this doesn't work (I think because I'm not within the Product tag).

Burn wxs:

<Wix>
<Bundle Version="!(bind.packageVersion.<packageName>)" >

    <Variable Name="ProductVersionMajor" Value="!(bind.property.ProductVersion.Major)"/>
    <Variable Name="ProductVersionMinor" Value="!(bind.property.ProductVersion.Minor)"/>
....

Theme.wxl:

<WixLocalization ...>
  <String Id="Caption">[WixBundleName] [ProductVersionMajor].[ProductVersionMinor] Setup</String>
....

Is there some kind of work around where I can get this information at the bundle level without writing custom code?

This answer here was useful, but not quite what it appears I need; since I'm not within the WIX product tag for the inner MSI.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source