Ejemplo n.º 1
0
 private void btnNext_Click(object sender, EventArgs e)
 {
     DebugLog("Next Button Clicked");
     if (InstallerEngine.CurrentPhase() == InstallerPhase.Initialized)
     {
         InstallerEngine.InstallAsync();
     }
     else
     {
         InstallerEngine.EndInstallation();
     }
 }
Ejemplo n.º 2
0
 public void ShowCompleteDialog()
 {
     if (Program.m_options.SilentInstall)
     {
         InstallerEngine.EndInstallation();
     }
     else
     {
         DebugLog("ShowCompleteDialog starting");
         PanelComplete panel = new PanelComplete();
         ShowPanel(panel);
         DebugLog("ShowCompleteDialog ending");
     }
 }
Ejemplo n.º 3
0
 public void ShowAlreadyInstalledDialog()
 {
     if (Program.m_options.SilentInstall)
     {
         InstallerEngine.EndInstallation();
     }
     else
     {
         DebugLog("ShowAlreadyInstalledDialog starting");
         PanelMessage panel = new PanelMessage();
         panel.SetMessage("This package is already installed.");
         ShowPanel(panel);
         DebugLog("ShowAlreadyInstalledDialog ending");
     }
 }
Ejemplo n.º 4
0
        public void ShowErrorDialog(string message)
        {
            Logger.Log(LogLevel.Error, message);

            if (Program.m_options.SilentInstall)
            {
                InstallerEngine.EndInstallation();
            }
            else
            {
                DebugLog("ShowErrorDialog starting");
                PanelMessage panel = new PanelMessage();
                panel.SetMessage(message);
                ShowPanel(panel);
                DebugLog("ShowErrorDialog ending");
            }
        }