Classification: Public Enrique, Why are you using a custom action to change the banner of the MSI? There is a WIX element to do that: <WixVariable Overridable="yes" Id='WixUIBannerBmp' Value="$(var.resourcePath)\TFSTopBanner.bmp"/> <WixVariable Overridable="yes" Id='WixUIDialogBmp' Value="$(var.resourcePath)\TFSSide.bmp"/>
Regards, Steve -----Original Message----- From: Enrique Domínguez [mailto:[email protected]] Sent: July-23-13 7:04 AM To: [email protected] Subject: [WiX-users] Updating msi database (install time) Hi, I'm working with wix-3.6 over VS2005 and I'm trying to make an update in a custom action at install time, for changing installer's banners. It's C# code and looks like: Microsoft.Deployment.WindowsInstaller.Database db = session.Database; string stSQL = @"UPDATE `Control` SET `Text`=? WHERE `Type`='Bitmap' AND `Control`='BannerBitmap'"; Microsoft.Deployment.WindowsInstaller.Record rc = db.CreateRecord(1); Microsoft.Deployment.WindowsInstaller.View vw=db.OpenView(stSQL); rc.SetString(1, MyBannerBmp); vw.Execute(rc); rc.SetString(1, MyDialogBmp); vw.Execute(rc); But UPDATE always fails with: 'Database Table(s) Update Failed' at vw.Execute line. I have tested a couple of different ways, always failing. Please, could somebody pointing me in right direction? I suppose as I was able to update PROPERTIES, I could update Control table fields. Thanks a lot. Best regards, Enrique Dominguez ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on July-23-13 9:05:51 AM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

