private void InstallerDialog_FormClosing(object sender, FormClosingEventArgs e) { if (InstallerEngine.CurrentPhase() == InstallerPhase.Complete || InstallerEngine.CurrentPhase() == InstallerPhase.Success) { // Do nothing; everything finished successfully. } else { DebugLog("InstallerDialog_FormClosing starting"); InstallerEngine.CancelInstallation(); DebugLog("InstallerDialog_FormClosing ending"); } }
private void btnCancel_Click(object sender, EventArgs e) { DebugLog("Cancel Button Clicked"); InstallerEngine.CancelInstallation(); }