Example #1
0
        public static string GetInstallerMessage(InstallerMessageType installerMessageType, string installerName)
        {
            string thisExeName = PathHelper.GetThisExeName();
            string message     = string.Empty;

            if (string.IsNullOrEmpty(installerName))
            {
                installerName = DefaultZipName;
            }

            string storageServerPath = GetStorageServerPath();
            string storageServerName = Path.GetFileName(storageServerPath);

            switch (installerMessageType)
            {
            case InstallerMessageType.BeforeCreated:
                message = "" +
                          "Click 'Create Installer' to create a zip file that can be used to install the LEAD Medical Web Services on 2nd computer.{0}" +
                          "\r\n" +
                          "Follow these steps to install the LEAD web services on a 2nd computer:{0}" +
                          "1. Run '{3}'{0}" +
                          "2. Set the File settings to a network path, accessible to both computers (this and the 2nd computer).{0}" +
                          "{0}" +
                          "3. Click 'Create Installer' to create the zip file installer: '{1}'.{0}" +
                          "4. 2nd computer: Copy '{1}' to any folder.{0}" +
                          "5. 2nd computer: Unzip '{1}'.{0}" +
                          "6. 2nd computer: Run '{2}' to create the web services.{0}" +
                          "7. From menu in this demo, choose 'Options|{3}' to configure using the web services.{0}" +
                          "";

                break;

            case InstallerMessageType.AfterCreated:
                message = "" +
                          "Web Service installer successfully created.{0}" +
                          "{0}" +
                          "Follow these steps to install the LEAD web services on a 2nd computer:{0}" +
                          "1. Click on the link below to open the folder containing the installer.{0}" +
                          "2. 2nd computer: Copy '{1}' to any folder.{0}" +
                          "3. 2nd computer: Unzip '{1}'.{0}" +
                          "4. 2nd computer: Run '{2}' to create the web services.{0}" +
                          "5. From menu in this demo, choose 'Options|{3}' to configure using web services.{0}" +
                          "";
                break;
            }

            return(string.Format(message, Environment.NewLine, installerName, thisExeName, Configure3DServiceToolStripMenuItemText, storageServerName));
        }
Example #2
0
 public InstallerMessage(string message, InstallerMessageType type = InstallerMessageType.Verbose)
 {
     Message = message;
     Type    = type;
 }