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