/// <summary> /// Starting SignUp of MSN Client installation /// </summary> /// <param name="option">Installation option.</param> /// <param name="objHelper">Helper object.</param> internal void StartNewUserSignUp(string option, ref Helper objHelper) { Logger.AddComment(BuildSanityUIMessages.LanguageMarket + option, Logger.CommentType.Message); Logger.AddComment(Constants.CleanUpStarted, Logger.CommentType.Message); if (!CleanUp.Clean()) { throw new Exception(Constants.CleanUpError); } DriveInfo driveInstallation = new DriveInfo(Environment.SystemDirectory.Substring(0, Environment.SystemDirectory.IndexOf("\\"))); ////Check drive size is greater than 35mB if (driveInstallation.TotalFreeSpace > Constants.RequiredDiskSpace) { Logger.AddComment(Constants.LoggingCleanUp, Logger.CommentType.Pass); string choice = option; this.Connection = "premium"; switch (choice) { case "ENUS : DialUp": this.Connection = "dialup"; objHelper.VersionLanguage = objHelper.GetAccountDetails("ENUS", this.Connection, ref objHelper); objHelper.LanguageSelected = "ENUS"; break; case "ENUS : Premium": objHelper.VersionLanguage = objHelper.GetAccountDetails("ENUS", this.Connection, ref objHelper); objHelper.LanguageSelected = "ENUS"; break; } } else { throw new Exception(BuildSanityUIMessages.MsgSpaceNotAvailable); } }
/// <summary> /// Starting SignUp of MSN Client /// </summary> /// <param name="option">Installation option</param> /// <param name="susiiPath">Location of SUSII</param> /// <returns>Copied Susii location</returns> internal void Start(string option, ref Helper objHelper) { if (!CleanUp.Clean()) { throw new Exception(Constants.CleanUpError); } DriveInfo driveInstallation = new DriveInfo(Environment.SystemDirectory.Substring(0, Environment.SystemDirectory.IndexOf("\\"))); ////Check drive size is greater than 35mB if (driveInstallation.TotalFreeSpace > Constants.RequiredDiskSpace) { Logger.AddComment(Constants.LoggingCleanUp, Logger.CommentType.Pass); string choice = option; connection = "premium"; switch (choice) { case "ENUS : DialUp": connection = "dialup"; objHelper.VersionLanguage = objHelper.GetMailId("ENUS", connection, ref objHelper); objHelper.LanguageSelected = "ENUS"; break; case "ENUS : Premium": objHelper.VersionLanguage = objHelper.GetMailId("ENUS", connection, ref objHelper); objHelper.LanguageSelected = "ENUS"; break; case "DE-DE": objHelper.VersionLanguage = objHelper.GetMailId("DEDE", connection, ref objHelper); Localization.LocalizationIndex = 1; break; case "FR-FR": objHelper.VersionLanguage = objHelper.GetMailId("FRFR", connection, ref objHelper); Localization.LocalizationIndex = 2; break; case "ES-ES": objHelper.VersionLanguage = objHelper.GetMailId("ESES", connection, ref objHelper); Localization.LocalizationIndex = 3; break; case "FR-CA": objHelper.VersionLanguage = objHelper.GetMailId("FRCA", connection, ref objHelper); Localization.LocalizationIndex = 2; break; case "ES-MX": objHelper.VersionLanguage = objHelper.GetMailId("ESMX", connection, ref objHelper); Localization.LocalizationIndex = 3; break; case "EN-GB": objHelper.VersionLanguage = objHelper.GetMailId("ENGB", connection, ref objHelper); break; case "EN-AU": objHelper.VersionLanguage = objHelper.GetMailId("ENAU", connection, ref objHelper); break; case "EN-CA": objHelper.VersionLanguage = objHelper.GetMailId("ENCA", connection, ref objHelper); break; case "BC01 EN-CA": isPartner = true; objHelper.PartnerSelected = "BC01"; objHelper.VersionLanguage = objHelper.GetMailId("BC01 EN-CA", connection, ref objHelper); break; case "BC01 FR-CA": isPartner = true; objHelper.PartnerSelected = "BC01"; Localization.LocalizationIndex = 2; objHelper.VersionLanguage = objHelper.GetMailId("BC01 FR-CA", connection, ref objHelper); break; case "Q001": isPartner = true; connection = "dialup"; objHelper.PartnerSelected = "Q001"; objHelper.VersionLanguage = objHelper.GetMailId("Q001", connection, ref objHelper); break; case "Q002": isPartner = true; objHelper.PartnerSelected = "Q002"; objHelper.VersionLanguage = objHelper.GetMailId("Q002", connection, ref objHelper); break; case "VZ01": isPartner = true; objHelper.VersionLanguage = objHelper.GetMailId("VZ01", connection, ref objHelper); objHelper.LanguageSelected = "VZ01"; break; case "VZ02": isPartner = true; objHelper.PartnerSelected = "VZ02"; objHelper.VersionLanguage = objHelper.GetMailId("VZ02", connection, ref objHelper); break; case "DELL": objHelper.VersionLanguage = objHelper.GetMailId("DELL", connection, ref objHelper); objHelper.LanguageSelected = "DELL"; break; } } else { throw new Exception("Size in Root drive is lesser than 35Mb Please uninstall few files before installation"); } }