It feels hackish because that's not the intended way to do things. Of
course, I'm not sure the "ideal path" is well documented and it's more work
so the hackish may be your ideal. <wink/>

First, the CustomTable definition (just Column elements) can be put in a
separate Fragment. Then, when you populate a CustomTable (add Row elements)
that CustomTable will reference the definition. That means you need to put
the CustomTable/Row in a fragment that is referenced.

Often, the CustomTable/Row data is so verbose, there is a tendency to put
it in a separate Fragment. That is a completely reasonable but now it's
floating in an island that needs a "hackish" reference. Empty PayloadGroup
for Bundles is very good, BTW.

So what's the ideal?  The ideal is to create an Extension. The Extension
would then extend the compiler to provide a "pretty face" on your
CustomTable and be far more powerful than the raw Row elements.

We cheated for a long time with the wixstdba by using WixVariables before
finally creating the "pretty face". Looking back, we should have done it
earlier. <smile/>

-- 
virtually,

Rob Mensching
http://RobMensching.com <http://robmensching.com/> LLC


On Fri, Jul 6, 2012 at 8:50 AM, jimitndiaye <jimitndi...@gmail.com> wrote:

> Referencing an empty PayloadGroup from each relevant fragment did the
> trick. :)
>
> Yes I do have a custom MBA that parses the metadata in
> BootstrapperApplicationData.xml and uses it to customise the UX.
>
> Sent from my iPhone
>
> On 6 Jul 2012, at 16:29, "Hoover, Jacob [via Windows Installer XML (WiX)
> toolset]" <ml-node+s687559n757932...@n2.nabble.com> wrote:
>
> > Not in each one, just the top level one which has the data defined in
> it.  I have a fragment for defining the table layout, and a fragment that
> defines the data in the table (and uses the defined table).  In this same
> fragment, I have a payload group which I am referencing in my bootstrappper
> application ref. I would think any sort of element that you could reference
> from your main bundle would include the table, so I don't think it has to
> be the one I am using.
> >
> > I agree, there should be a CustomTableRef element so that you could have
> a unique fragment with only your table data in it.  Might not hurt logging
> this as a feature request if one doesn't already exist.
> >
> > In the scope of a MSI, a work around was to create a Property in the
> same fragment and then reference that property in the main fragment. In
> your case, since you are doing custom processing of this additional meta
> data, then one would assume that you already have a custom
> BootstrapperApplication setup, so the intent would be to include the table
> data there and then referencing the BA would pull in the table.
> >
> > Jacob
> >
> > -----Original Message-----
> > From: jimitndiaye [mailto:[hidden email]]
> > Sent: Friday, July 06, 2012 10:00 AM
> > To: [hidden email]
> > Subject: Re: [WiX-users] Custom MBA, adding extra metadata to the
> Bootstrapper Application Data
> >
> > I suspected it might have something to do fragment references. No I
> don't have any Refs in those fragments (I was trying to preserve sanity by
> separating everything into fragments containing only related elements -
> there really should be something like TableRef, VariableRef etc). I'll try
> including an empty PayloadGroup in each fragment and reference them from
> the main bundle. Seems a bit hackish though.
> >
> > Sent from my iPhone
> >
> > On 6 Jul 2012, at 15:03, "Hoover, Jacob [via Windows Installer XML (WiX)
> toolset]" <[hidden email]> wrote:
> >
> > > It's working for me.  After defining the table and the data, did you
> remember to reference the table in the same fragment as a payload group
> which you reference inside your BootstrapperApplicationRef?
> > >
> > > -----Original Message-----
> > > From: jimitndiaye [mailto:[hidden email]]
> > > Sent: Friday, July 06, 2012 6:49 AM
> > > To: [hidden email]
> > > Subject: Re: [WiX-users] Custom MBA, adding extra metadata to the
> > > Bootstrapper Application Data
> > >
> > > For some reason this isn't working for me. I have a bundle with
> several custom tables defined in separate fragments (all of them with
> BootstrapperApplicationData="yes"). None of them are being written to the
> BootstrapperApplicationData.xml file.
> > >
> > > --
> > > View this message in context:
> > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-M
> > > BA-adding-extra-metadata-to-the-Bootstrapper-Application-Data-tp757569
> > > 4p7579320.html Sent from the wix-users mailing list archive at
> > > Nabble.com.
> > >
> > > ----------------------------------------------------------------------
> > > --------
> > > Live Security Virtual Conference
> > > Exclusive live event will cover all the ways today's security and
> > > threat landscape has changed and how IT managers can respond.
> > > Discussions will include endpoint security, mobile security and the
> > > latest in malware threats.
> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > > _______________________________________________
> > > WiX-users mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > > ----------------------------------------------------------------------
> > > --------
> > > Live Security Virtual Conference
> > > Exclusive live event will cover all the ways today's security and
> > > threat landscape has changed and how IT managers can respond.
> > > Discussions will include endpoint security, mobile security and the
> > > latest in malware threats.
> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > > _______________________________________________
> > > WiX-users mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > > If you reply to this email, your message will be added to the
> discussion below:
> > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-M
> > > BA-adding-extra-metadata-to-the-Bootstrapper-Application-Data-tp757569
> > > 4p7579321.html To unsubscribe from Custom MBA, adding extra metadata
> > > to the Bootstrapper Application Data, click here.
> > > NAML
> >
> >
> > --
> > View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-MBA-adding-extra-metadata-to-the-Bootstrapper-Application-Data-tp7575694p7579324.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > WiX-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > WiX-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > If you reply to this email, your message will be added to the discussion
> below:
> >
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-MBA-adding-extra-metadata-to-the-Bootstrapper-Application-Data-tp7575694p7579327.html
> > To unsubscribe from Custom MBA, adding extra metadata to the
> Bootstrapper Application Data, click here.
> > NAML
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-MBA-adding-extra-metadata-to-the-Bootstrapper-Application-Data-tp7575694p7579329.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to