Tom, Thanks for pointing it out. It was a typo on the message I sent. The actual code was good. However I got around the problem by setting the property values in Registery and then reading them while uninstall. The issue was with reading these values from registery Thanks,
Message: 2 Date: Thu, 18 Dec 2008 09:25:37 -0600 From: "Thomas S. Trias" <[email protected]> Subject: Re: [WiX-devs] Unistall script getting executed only on the default database To: Windows Installer XML toolset developer mailing list <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" In the example below, your Property names don't match; you're using MECDATABASE as the Property and [RPTDATABASE] as the Database attribute of the SqlDatabase element. Was this a typo in what you sent, or do you have a mismatch in your WXS? In addition to a verbose uninstall log, you can also add code to your script to log information via xp_logevent or xp_cmdshell (obviously not something to do in practice, but ok during testing / debugging). Thanks, Thomas S. Trias Senior Developer Artizan Internet Services http://www.artizan.com/ -------- Original Message -------- Subject: [WiX-devs] Unistall script getting executed only on the default database From: siaj <[email protected]> To: [email protected], [email protected] Date: 12/16/2008 11:23 PM > > I am creating a setup using Wix which is creating some objects in a > database and droping it while uninstall. The create and drop is > working fine but if the user chooses to create these objects on a > different database while installation,the uninstall is not cleaning it > while uninstall. I tried to set the properties from Registery values > using custom action (during uninstall) and sequenced it before > AppSearch. I can see the custom action getting called (I used a > message box) but the drop script is getting fired only the default > database. so If components were created on new database, it never gets > dropped. > > > > The default property "DatabaseName" is getting > > > > <Property Id='MECDATABASE' Value='Reporting_Database'/> > > <Property Id= DBSERVERNAME Value='Reporting_Server'/> > > > > > > <Sql:SqlDatabase Id="ReportingDatabase" Database="[RPTDATABASE]" > CreateOnInstall="yes" CreateOnUninstall="no" DropOnInstall="no" > Server="[DBSERVERNAME]" ContinueOnError="yes" DropOnUninstall="no"> > > <Sql:SqlScript Id="S1" ExecuteOnInstall="yes" > ExecuteOnReinstall="yes" ContinueOnError="no" Sequence="001" > BinaryKey="OLAP_Scripts_Install.sql" > > <Sql:SqlScript Id="S2" ExecuteOnInstall="no" > ExecuteOnReinstall="no" ExecuteOnUninstall="yes" ContinueOnError="yes" > Sequence="002" BinaryKey="OLAP_Scripts_Uninstall.sql"/> > > </Sql:SqlDatabase> > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------
------------------------------------------------------------------------------
_______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
