private void bInstall_Click(object sender, EventArgs e)
        {
            var options = new Installation.UninstallationOptions();

            options.RecoverOriginalFiles    = cb_recover_orig.Checked;
            options.DeleteAllModLoaderFiles = rb_delete.Checked;
            options.KeepSettings            = cbKeepConfigs.Checked;
            options.UninstallAndDeleteOCMI  = cb_Uninstall_OCMI.Checked && options.DeleteAllModLoaderFiles;

            if (bInstall.Text == "Install")
            {
                Installation.Install();
            }
            else if (bInstall.Text == "Uninstall")
            {
                Installation.Uninstall(options);
            }

            UpdateInstallationStatus();
        }
Beispiel #2
0
 private void bYes_Click(object sender, EventArgs e) => Installation.Install();