Hi all,

We have a custom action which processes rows in a custom table (the details
of this don't matter, but suffice to say some code is run for each record).
Currently we are using a CustomTable element in our wxs to implement this,
and I think we could do better with a WiX extension. I want to write an
extension that provides new <foo:Foo/> elements in the schema and causes
data based on <foo:Foo/> elements in my source to be written to a Foo table.

I've been looking at this today, but the documentation is lacking. For
starters, there are different types of extensions. I've played a
little with BinderExtension in the past, and I think the best choice here
is a CompilerExtension, but there's nowhere in the documentation which lays
this out.

More importantly, the kind of code you need to write to create an extension
isn't explained. I've taken a look at the code for the Util extension and
the Gaming extension, and there seems to be a pattern of creating a
CompilerExtension, a DecompilerExtension and a WixExtension (though I'm not
sure what the point of the latter is). There also seems to be a table
definitions XML file and a messages XML file, but no clear indication of
how this is used.  The tables xsd doesn't seem to get installed when I
install the toolset - is it safe to copy this into the Visual Studio
schemas folder?

I checked out the docs at
http://wix.sourceforge.net/manual-wix3/extension_development.htm and the
tutorial at http://wix.tramontana.co.hu/tutorial but the tutorial doesn't
mention anything about WiX (it may be slightly out of date with how
prevalent extensions have become lately) and the official docs contain a
sample on pre-processor extensions but not compiler extensions.

Is there a blog post or something out there with more a complete
walkthrough of how to develop something like a compiler extension? And if
there isn't but I manage to figure it out anyway, is there a way to capture
that so it can be shared (e.g, could I submit a change to the doc with
a CompilerExtension sample)?

I'm using Wix 3.6 at the moment

Thanks
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to