In the first case the database lifetime should be controlled by the Component.  
In the second case, the database must be created/deleted by some other means.  
Need a bit more detail (errors from verbose log file?) to understand what else 
might be going wrong.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miloš Milovanovic
Sent: Tuesday, June 10, 2008 01:58
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problem to uninstall database with wix 3.0

Dear All,

I submitted this email some time ago. Do you have some clue what is the problem?

Thank you in advance!
Milos

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miloš Milovanovic
Sent: Monday, June 02, 2008 11:16 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem to uninstall database with wix 3.0

I have a problem to uninstall the database. Here is the code I tried:

<Component Id="SqlScriptComponentId1"
                 Guid="9F60758F-4606-41d0-BECC-6EC8C2D1D1FE"
                 KeyPath="yes">
  <sql:SqlDatabase Id="BusinessPolicyID" Database="BusinessPolicy" 
Server="[SQLSERVER]"
                          CreateOnInstall="yes" DropOnUninstall="yes" 
ContinueOnError="no">
      <sql:SqlScript Id="CreateTables" ExecuteOnInstall="yes"
                          BinaryKey="DatabaseScriptBin1Clean"></sql:SqlScript>
      </sql:SqlDatabase>

</Component>

I also tried:

<Component Id="SqlScriptComponentId1"
                  Guid="9F60758F-4606-41d0-BECC-6EC8C2D1D1FE" KeyPath="yes">
  <sql:SqlScript BinaryKey="DatabaseScriptBin1" ExecuteOnInstall="yes"
                 Id="SqlScriptId1" SqlDb="TestDB" Sequence="2" />
  <sql:SqlScript BinaryKey="DatabaseUninstallScriptBin1" 
ExecuteOnUninstall="yes"
                      RollbackOnReinstall="yes" Id="SqlUninstallScript1" 
SqlDb="TestDB" Sequence="1"/>
</Component>

In both cases result is the same: database is succesfully created but it cannot 
be uninstalled.

Please, give me some hints.

Thanks in advance!

Milos

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to