Skip to content

Instantly share code, notes, and snippets.

@ExtremeGTX
Last active October 29, 2019 19:20
Show Gist options
  • Save ExtremeGTX/6558d9d4a045e906d50f3d3172d6c734 to your computer and use it in GitHub Desktop.
Save ExtremeGTX/6558d9d4a045e906d50f3d3172d6c734 to your computer and use it in GitHub Desktop.
using Microsoft.Win32;
private void button1_Click(object sender, EventArgs e)
{
int? XMI_Transactions = (int?)Registry.GetValue(@"HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS", "XMI_USE_TRANSACTION", null);
if (XMI_Transactions == null)
{
MessageBox.Show("EA is not installed");
return;
}
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS", "XMI_USE_TRANSACTION", 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment