Пример #1
0
        public void LoadInstallPath()
        {
            if (product == "WebPortal" || product == "WebAPI")
            {
                return;
            }
            int charCount = 0;

            switch (product)
            {
            case "SalesPad":
                charCount = 43;
                break;

            case "DataCollection":
                charCount = 51;
                break;

            case "Mobile":
                charCount = 50;
                break;

            case "ShipCenter":
                charCount = 42;
                break;
            }
            tbInstallLocation.Text = BuildManagement.GetInstallPath(defaultInstallPath, installerPath, charCount);
        }
Пример #2
0
        public void LoadModules(string product, string installerPath, string productVersion, string installer)
        {
            string extModulesPath  = "";
            string custModulesPath = "";

            if (product == "DataCollection" || product == "ShipCenter" || product == "WebPortal" || product == "Mobile")
            {
                lbExtendedModules.Enabled      = false;
                checkRunDatabaseUpdate.Enabled = false;
            }
            if (product == "Mobile")
            {
                lbCustomModules.Enabled        = false;
                cbConfigurationList.Enabled    = false;
                btnAddConfiguration.Enabled    = false;
                btnRemoveConfiguration.Enabled = false;
            }
            switch (product)
            {
            case "SalesPad":
                extModulesPath  = String.Format(@"{0}\ExtModules\{1}", installerPath, productVersion);
                custModulesPath = String.Format(@"{0}\CustomModules\{1}", installerPath, productVersion);
                break;

            case "WebAPI":
                extModulesPath  = String.Format(@"{0}\ExtModules", installerPath);
                custModulesPath = String.Format(@"{0}\CustomModules", installerPath);
                break;

            case "DataCollection":
                custModulesPath = String.Format(@"{0}\CustomModules", installerPath);
                break;

            case "Mobile":
                break;

            case "ShipCenter":
                custModulesPath = String.Format(@"{0}\Custom", installerPath);
                break;

            case "WebPortal":
                custModulesPath = String.Format(@"{0}\Plugins", installerPath);
                break;
            }
            if (!String.IsNullOrWhiteSpace(extModulesPath))
            {
                lbExtendedModules.Items.AddRange(BuildManagement.RetrieveDLLs(extModulesPath, installerPath, product, installer));
            }
            lbCustomModules.Items.AddRange(BuildManagement.RetrieveDLLs(custModulesPath, installerPath, product, installer));
        }