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...
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/SqlDatabase-does-not-recreate-database-during-rollback-of-uninstall-tp7597512p7597517.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users