void IUninstallAction.Run(SetupVariables vars) { try { Log.WriteStart(LogStartUninstallMessage); // Log.WriteInfo(String.Format("Deleting database \"{0}\"", vars.Database)); // if (SqlUtils.DatabaseExists(vars.DbInstallConnectionString, vars.Database)) { SqlUtils.DeleteDatabase(vars.DbInstallConnectionString, vars.Database); // Log.WriteEnd("Deleted database"); } } catch (Exception ex) { if (Utils.IsThreadAbortException(ex)) { return; } Log.WriteError("Database delete error", ex); throw; } }