public void UpdateReg(bool checkAfter = true)
{
RegistryKey play = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\illusion\AA2Play");
RegistryKey edit = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\illusion\AA2Edit");
play.SetValue("INSTALLDIR", txtPLAYreg.Text, RegistryValueKind.String);
edit.SetValue("INSTALLDIR", txtEDITreg.Text, RegistryValueKind.String);
if (checkAfter)
CheckInstalled();
}