AA2Install.formMain.UpdateReg C# (CSharp) Method

UpdateReg() public method

public UpdateReg ( bool checkAfter = true ) : void
checkAfter bool
return void
        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();
        }