I'm curious, why do you need to do this? On Mon, Jan 17, 2011 at 5:05 PM, Castro, Edwin G. (Hillsboro) < edwin.cas...@fiserv.com> wrote:
> I’d like to write a program using DTF to open up a MSI package and > programmatically update some Conditions in the InstallExecuteSequence table. > This program be used to update MSI packages before installation. Here’s some > pseudo code for what I have so far: > > using (database = new Database(filePath, DatabaseOpenMode.Transact)) > { > query = database.Tables["InstallExecuteSequence"].SqlSelectString > using (view = database.OpenView(query)) > { > while (record = view.Fetch()) > { > try > { > action = record.GetString("Action") > if (action is the action I want) > { > record.SetString("Condition", "new condition") > } > } > finally > { > record.Close() > } > } > } > database.Commit() > } > > I’m trying to implement this as a PowerShell script so my script doesn’t > look exactly like the pseudo code above. > > Is this going in the correct direction? I have a feeling that this isn’t > quite right but I don’t know exactly what the missing piece is. > > Edwin G. Castro > Software Developer - Staff > Electronic Banking Services > Fiserv > Office: 503-746-0643 > Fax: 503-617-0291 > www.fiserv.com > Please consider the environment before printing this e-mail > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users