You'd have to create your database with SqlString or SqlScript as well but 
creating perfect rollback is extremely challenging with databases 
(unfortunately).

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Monday, October 27, 2014 8:31 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] SqlDatabase does not recreate database during rollback 
of uninstall

Thank Rob. Now I've tried the following:

<sql:SqlDatabase ...>
  <sql:SqlString Sequence="1" 
                       Id="sqlString_rollbackUninstall"
                       SQL="CREATE DATABASE MyDatabase"
                       RollbackOnUninstall="yes"
                       ContinueOnError="yes" /> </sql:SqlDatabase>

However, the database is still removed during an uninstall-rollback. The log 
indicates that the rollback of the SqlDatabase element happens after the 
rollback of the SqlString:

Executing op: CustomActionSchedule(Action=RollbackExecuteSqlStrings ...
Executing op: ActionStart(Name=DropDatabase, Description=Dropping
Databases,)

Darn...maybe it's not possible to resurrect the database, even with a 
SqlString, given the order of the rollback actions...

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to