Skip to content

Commit

Permalink
Allow installer to work when port 80 is blocked and up version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbob committed Feb 14, 2018
1 parent 77eee65 commit b17dd41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions MSI/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
-->

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<Product Id="*" Name="FOG Service" Language="1033" Version="0.11.13" UpgradeCode="1CCFDEAF-53E9-43AC-AE18-F9F86CEFA4EA"
<Product Id="*" Name="FOG Service" Language="1033" Version="0.11.14" UpgradeCode="1CCFDEAF-53E9-43AC-AE18-F9F86CEFA4EA"
Manufacturer="FOG">
<Package Description="FOG Service" Comments="A client for the FOG project" InstallerVersion="300" Compressed="yes"
InstallScope="perMachine" />
<!-- Remove old versions -->
<Upgrade Id="1CCFDEAF-53E9-43AC-AE18-F9F86CEFA4EA">
<UpgradeVersion OnlyDetect="yes" Minimum="0.0.0" Property="NEWERVERSIONDETECTED" IncludeMinimum="no" />
<UpgradeVersion OnlyDetect="no" Minimum="0.0.0" Maximum="0.11.12" Property="OLDERVERSIONBEINGUPGRADED"
<UpgradeVersion OnlyDetect="no" Minimum="0.0.0" Maximum="0.11.13" Property="OLDERVERSIONBEINGUPGRADED"
IncludeMinimum="no" IncludeMaximum="yes" MigrateFeatures="yes" />
</Upgrade>
<InstallExecuteSequence>
Expand Down
3 changes: 2 additions & 1 deletion SetupHelper/CustomAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))
{
Expand Down
6 changes: 3 additions & 3 deletions SetupHelper/GenericSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion UniversalInstaller/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit b17dd41

Please sign in to comment.