private void btnUnregister_Click(object sender, EventArgs e) { try { if (File.Exists(Program.ChromeHostManifestFilePath)) { File.Delete(Program.ChromeHostManifestFilePath); } RegistryHelpers.UnregisterChromeSupport(); MessageBox.Show(Resources.ChromeForm_btnUnregister_Click_Chrome_support_disabled_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "ShareX - " + Resources.Program_Run_Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } }