Looking through the source of the Wix Standard Bootstrapper application, it appears that each package has a DisplayName property:
pPackage->sczDisplayName
However, the BootstrapperCore dll that is used in the WiX Setup project does not have this property. Is there any way to extract this property from the bundles in managed code?
I ported the
Bal
code into C#, trying to make it work exactly like the C++ code:The
BootstrapperApplicationData.xml
file that is generated during the build process is placed next to your BA .dll. You can load that XML file to get lots of information about the bundle and packages in the bundle.To load the
BootstrapperApplicationData.xml
in native code, use theBalManifestLoad()
method inbalutil.lib
that is provided with the WiX toolset. You can see the code insrc\ext\BalExtension\balutil\balutil.cpp
. Then you can useBalInfoParseFromXml()
also inbalutil.lib
to parse the XML file into a bunch of handy structs. You can see the code insrc\ext\BalExtension\balutil\balinfo.cpp
.