Example #1
0
 internal FrmUpdateWizard(Dictionary <Guid, Company> Companies, string updateFile)
 {
     Logger.EnteringMethod("FrmUpdateWizard");
     InitializeComponent();
     updateFilesWizard = new FrmUpdateFilesWizard(updateFile);
     InitializeComponent(Companies, null, null, null);
 }
Example #2
0
 internal FrmUpdateWizard(Dictionary <Guid, Company> Companies, Company SelectedCompany, string updateFile)
 {
     Logger.EnteringMethod("FrmUpdateWizard");
     InitializeComponent();
     InferFromMsiProperties = false;
     updateFilesWizard      = new FrmUpdateFilesWizard(updateFile);
     InitializeComponent(Companies, SelectedCompany, null, null);
 }
 internal FrmUpdatePublisher(FrmUpdateFilesWizard filesWizard, FrmUpdateInformationsWizard informationsWizard, FrmUpdateRulesWizard isInstalledRulesWizard, FrmUpdateRulesWizard isInstallableRulesWizard, FrmUpdateApplicabilityMetadata updateApplicabilityMetadata)
 {
     Logger.EnteringMethod("FrmUpdatePublisher");
     InitializeComponent();
     this._wsus                        = WsusWrapper.GetInstance();
     this._filesWizard                 = filesWizard;
     this._informationsWizard          = informationsWizard;
     this._isInstalledRulesWizard      = isInstalledRulesWizard;
     this._isInstallableRulesWizard    = isInstallableRulesWizard;
     this._updateApplicabilityMetadata = updateApplicabilityMetadata;
 }
Example #4
0
 private void CleanAndClose()
 {
     Logger.EnteringMethod();
     updateFilesWizard.Dispose();
     updateFilesWizard = null;
     if (updateInformationsWizard != null)
     {
         updateInformationsWizard.Dispose();
     }
     updateInformationsWizard = null;
     updateIsInstalledRulesWizard.Dispose();
     updateIsInstalledRulesWizard = null;
     updateIsInstallableRulesWizard.Dispose();
     updateIsInstallableRulesWizard = null;
     this.Close();
 }
Example #5
0
        private void FrmUpdateWizard_Shown(object sender, EventArgs e)
        {
            Logger.EnteringMethod();
            this.Location = new Point(this.Location.X, 10);
            string currentFolder = System.Environment.CurrentDirectory;

            Logger.Write("CurrentDirectory is : " + currentFolder);
            if (CustomUpdate && System.IO.File.Exists(currentFolder + @"\CustomUpdateEngine.exe"))
            {
                updateFilesWizard = new FrmUpdateFilesWizard(currentFolder + @"\CustomUpdateEngine.exe");
                updateFilesWizard.AddAdditionnalFile(ActionsFilePath);

                updateFilesWizard.TopLevel = false;
                updateFilesWizard.Controls["btnNext"].Click   += new EventHandler(updateFilesWizard_btnNext_Click);
                updateFilesWizard.Controls["btnCancel"].Click += new EventHandler(updateFilesWizard_btnCancel_Click);
                InitializeUpdateFilesWizard();
            }
        }