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>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs