One idea I would like to submit is something I did internally for writing tests 
and other tools, borrowing an idea or two from another project of mine without 
the PowerShell dependency.
 
Both WiX and DTF expose some pretty rich object models, but apart from using 
different index bases all fields are exposed as integers. Even after 15 years I 
don't always remember what column name is what index in a table! So I created 
an abstract Row object that implements DynamicObject and provides field names 
as properties, so that you (along with some LINQ goodness) can do stuff like 
this:
 
var results = from dynamic upgrade in tables["Upgrade"].Rows
              join dynamic property in tables["Property"].Rows on 
upgrade.UpgradeCode equals property.Property
              select upgrade;
foreach (dynamic row in results)
{
    var detect = 0 != (row.Attributes & 0x2);
}

It's pretty straight forward to implement and, by abstracting the details away 
using adapters, you could handle the different in indices and allow Breaker to 
work with WiX and MSI output formats.


Heath Stewart
Software Design Engineer
Visual Studio, Microsoft
http://blogs.msdn.com/heaths

 
> Date: Thu, 25 Sep 2014 11:15:54 -0700
> From: phogl...@rimage.com
> To: wix-devs@lists.sourceforge.net
> Subject: Re: [WiX-devs] ICE Breaker v0.0.1
> 
> Adding to my off-the-cuff comment in the meeting today....pipe as in a tool
> to produce smoke
> 
> 
> 
> --
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ICE-Breaker-v0-0-1-tp7596908p7597002.html
> Sent from the wix-devs mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-devs mailing list
> WiX-devs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-devs
                                          
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to