Hello,

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>


<Custom Action="SetVariablesFromReg" Before="AppSearch"><![CDATA[Installed
]]></Custom>



Please let  me know if you have seen this issue or have any feedback.



Thanks,

Jai
------------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to