private static void AddFilesToZip(ZipArchive newZipFile) { List <MyFileEntry> files = new List <MyFileEntry>(); files.AddRootLevelFiles(); // Configuration // files.Add(new MyFileEntry(Path.Combine(WebServiceInstaller.RootPath, @"GlobalPacs.config"), @"Configuration")); // Modified "LeadtoolsServicesHostManager.xml" files.AddModifiedConfig(WebServiceInstaller.GetConfigFilePath_ServicesHostManager(), WebServiceInstaller.ModifyLeadtoolsServicesHostManagerXml); // Modified "WebViewerConfiguration.exe.Config" files.AddModifiedConfig(WebServiceInstaller.GetConfigFileName_WebViewerConfiguration(), WebServiceInstaller.ModifyWebViewerConfigurationConfig); // Modified "CSPacsDatabaseConfigurationDemo.exe.config" or "CSPacsDatabaseConfigurationDemo_Original.exe.config" files.AddModifiedConfig(WebServiceInstaller.GetConfigFileName_DatabaseConfiguration(), WebServiceInstaller.ModifyDatabaseConfigurationConfig); // WCF Service Files files.AddWcfServiceFiles(); // ASP Service Files files.AddAspServiceFiles(); WebServiceInstaller.AddZip(newZipFile, files); string message = "...Total Files Added: " + files.Count.ToString(); Logger.LogMessage(message); }
static void AddRootLevelFiles(this List <MyFileEntry> files) { // Assemblies (Leadtools.Xxxxx.dll) List <string> binaryFileList = new List <string>(); List <string> wcfList = WebServiceInstaller.GetXmlFileListWcf(); AddToList(binaryFileList, wcfList); List <string> aspList = WebServiceInstaller.GetXmlFileListAsp(); AddToList(binaryFileList, aspList); // AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Medical.Forward.DataAccessLayer.dll"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Medical.Media.DataAccessLayer.dll"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Dicom.Server.exe"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.ProxyServer3D.exe"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Medical3DProxy.exe"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.MedicalViewer.dll"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Medical3D.Engine9.dll"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"Leadtools.Medical3d.dll"); // Swift Shader AddToList(binaryFileList, WebServiceInstaller.RootPath, @"LT3DRndr9u.dll"); AddToList(binaryFileList, WebServiceInstaller.RootPath, @"LT3DRndr9x.dll"); // Exe if (AddToList(binaryFileList, WebServiceInstaller.RootPath, @"CSPacsDatabaseConfigurationDemo.exe") == false) { AddToList(binaryFileList, WebServiceInstaller.RootPath, @"CSPacsDatabaseConfigurationDemo_Original.exe"); } if (AddToList(binaryFileList, WebServiceInstaller.RootPath, @"WebViewerConfiguration.exe") == false) { AddToList(binaryFileList, WebServiceInstaller.RootPath, @"WebViewerConfiguration_Original.exe"); } if (AddToList(binaryFileList, WebServiceInstaller.RootPath, @"LeadtoolsServicesHostManager.exe") == false) { AddToList(binaryFileList, WebServiceInstaller.RootPath, @"LeadtoolsServicesHostManager_Original.exe"); } // Add help file for LeadtoolsServicesHostManager.exe AddToList(binaryFileList, WebServiceInstaller.RootPath, @"LeadtoolsServicesHostManagerTroubleshooting.html"); // Remove duplicates binaryFileList = binaryFileList.Distinct(StringComparer.CurrentCultureIgnoreCase).ToList(); // Sort binaryFileList = binaryFileList.OrderBy(q => q).ToList(); foreach (string s in binaryFileList) { files.Add(new MyFileEntry(Path.Combine(WebServiceInstaller.RootPath, s), string.Empty)); } }
private void WebServiceInstallerResultDialog_Load(object sender, EventArgs e) { this.Text = "Web Service Installer Created"; string zipFileName = Path.GetFileName(InstallerLocation); string result = WebServiceInstaller.GetInstallerMessage(InstallerMessageType.AfterCreated, zipFileName); labelResult.Text = result; linkLabel.Text = InstallerLocation; linkLabel.Links[0].LinkData = InstallerLocation; }
private void WebServiceInstallerDialog_Load(object sender, EventArgs e) { string result = WebServiceInstaller.GetInstallerMessage(InstallerMessageType.BeforeCreated, WebServiceInstaller.DefaultZipName); labelResult.Text = result; if (string.IsNullOrEmpty(ZipPath)) { textboxZipInstallerPath.Text = _defaultZipPath; } else { textboxZipInstallerPath.Text = ZipPath; } string storageServerPath = WebServiceInstaller.GetStorageServerPath(); string storageServerName = Path.GetFileName(storageServerPath); this.linkLabelRunCSStorageServerManagerDemo.Text = string.Format("Run '{0}'", storageServerName); this.linkLabelRunCSStorageServerManagerDemo.LinkClicked += LinkLabelRunCSStorageServerManagerDemo_LinkClicked; this.linkLabelInstructionsNetworkPath.LinkClicked += LinkLabelInstructionsNetworkPath_LinkClicked; this.linkLabelCreateInstaller.LinkClicked += LinkLabelCreateInstaller_LinkClicked; }
private void LinkLabelRunCSStorageServerManagerDemo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string storageServerPath = WebServiceInstaller.GetStorageServerPath(); Process.Start(storageServerPath); }