public override void Uninstall(IDictionary savedState) { string path = Path.Combine(Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System)), DBINSTALLPATH); if (MessageBox.Show("Would you like to drop the database?\r\nKeep in mind if there are unsent data will be lost.", "Installer", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) { string msg; if ((msg = ClientDataAccess.DropDatabaseSafe(path)) != null) { MessageBox.Show(msg, "Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); } } base.Uninstall(savedState); }