From b17dd413d7386a1e847b0726bed00f108c70460b Mon Sep 17 00:00:00 2001 From: Jbob Date: Wed, 14 Feb 2018 11:50:41 -0600 Subject: [PATCH] Allow installer to work when port 80 is blocked and up version --- MSI/Product.wxs | 4 ++-- SetupHelper/CustomAction.cs | 3 ++- SetupHelper/GenericSetup.cs | 6 +++--- UniversalInstaller/Helper.cs | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/MSI/Product.wxs b/MSI/Product.wxs index 2f5e87dd..2ab87000 100644 --- a/MSI/Product.wxs +++ b/MSI/Product.wxs @@ -20,14 +20,14 @@ --> - - diff --git a/SetupHelper/CustomAction.cs b/SetupHelper/CustomAction.cs index 646b813f..df1bc06c 100644 --- a/SetupHelper/CustomAction.cs +++ b/SetupHelper/CustomAction.cs @@ -41,7 +41,8 @@ public static ActionResult InstallCert(Session session) { try { - if (GenericSetup.PinServerCert(session.CustomActionData["sWEBADDRESS"], + if (GenericSetup.PinServerCert(session.CustomActionData["sHTTPS"], + session.CustomActionData["sWEBADDRESS"], session.CustomActionData["sWEBROOT"], session.CustomActionData["sINSTALLDIR"])) { diff --git a/SetupHelper/GenericSetup.cs b/SetupHelper/GenericSetup.cs index 01664158..a9b7a729 100644 --- a/SetupHelper/GenericSetup.cs +++ b/SetupHelper/GenericSetup.cs @@ -38,14 +38,14 @@ public static bool PinServerCert(string location, bool presetSettings = false) Settings.SetPath(Path.Combine(location, "settings.json")); Configuration.GetAndSetServerAddress(); - Configuration.ServerAddress = Configuration.ServerAddress.Replace("https://", "http://"); return PinServerCertPreset(location); } - public static bool PinServerCert(string address, string webroot, string location) + public static bool PinServerCert(string https, string address, string webroot, string location) { - Configuration.ServerAddress = "http://" + address + webroot; + var useHTTPS = (https == "1"); + Configuration.ServerAddress = ((useHTTPS) ? "https://" : "http://") + address + webroot; return PinServerCertPreset(location); } diff --git a/UniversalInstaller/Helper.cs b/UniversalInstaller/Helper.cs index d7ac29ea..a3f6dea3 100644 --- a/UniversalInstaller/Helper.cs +++ b/UniversalInstaller/Helper.cs @@ -28,7 +28,7 @@ namespace FOG public static class Helper { private const string LogName = "Installer"; - public const string ClientVersion = "0.11.13"; + public const string ClientVersion = "0.11.14"; public static IInstall Instance { get; }