Example #1
0
        /// <summary>
        /// Check for the update of one installed product.
        /// </summary>
        private void WebCheckProduct()
        {
            string statusText;
            Product webCheckProduct = m_localProducts[0];

            m_localProducts.RemoveAt(0);

            statusText = "Checking for installed product updates online.";
            ProgressForm.Status = statusText;
            ProgressTray.Status = statusText;

            m_currentTask = new WebCheck(webCheckProduct);
            m_currentTask.TaskDone += new TaskActionEventHandler(OnWebCheckDone);
            m_currentTask.TaskError += new TaskErrorEventHandler(OnTaskError);
            m_currentTask.Start();
        }
Example #2
0
        /// <summary>
        /// Download the update for one updatable product.
        /// </summary>
        private void WebDownload()
        {
            string statusText;
            Product webProduct = m_updateProducts[0];

            m_updateProducts.RemoveAt(0);

            statusText = "Downloading update for " + webProduct.Name + ".";
            ProgressForm.Status = statusText;
            ProgressTray.Status = statusText;

            m_currentTask = new WebDownload(webProduct);
            m_currentTask.TaskDone += new TaskActionEventHandler(OnWebDownloadDone);
            m_currentTask.TaskError += new TaskErrorEventHandler(OnTaskError);
            m_currentTask.Start();
        }
Example #3
0
        /// <summary>
        /// Start the installer for one updatable product.
        /// </summary>
        private void InstallProduct()
        {
            string statusText;
            Product installProduct = m_installableProducts[0];
            m_installableProducts.RemoveAt(0);

            statusText = "Installing update for " + installProduct.Name + ".";
            ProgressForm.Status = statusText;
            ProgressForm.Status = statusText;

            m_currentTask = new Installer(installProduct);
            m_currentTask.TaskDone += new TaskActionEventHandler(OnInstallDone);
            m_currentTask.TaskError += new TaskErrorEventHandler(OnTaskError);
            m_currentTask.Start();

            // Disable the cancel button.
            ProgressForm.Cancellable = false;
        }