But I haven't tested it yet, so it's probably got a zillion things wrong inside it.
Now I can get an idea of what sequence of calls WiX actually expects to use to build an MSI.