Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     DebugLog("Cancel Button Clicked");
     InstallerEngine.CancelInstallation();
 }