2 Commits

Author SHA1 Message Date
Tommy Parnell
98eb1574ef certs 2016-05-09 21:43:37 -04:00
Tommy Parnell
47bc01e2b9 stopping for now 2016-05-04 20:30:40 -04:00
17 changed files with 538 additions and 167 deletions

2
.gitignore vendored
View File

@@ -9,7 +9,7 @@
# User-specific files (MonoDevelop/Xamarin Studio) # User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs *.userprefs
*.pem
# Build results # Build results
[Dd]ebug/ [Dd]ebug/
[Dd]ebugPublic/ [Dd]ebugPublic/

BIN
MyWebsite.msi Normal file

Binary file not shown.

307
MyWebsite.wxs Normal file
View File

@@ -0,0 +1,307 @@
<?xml version="1.0" encoding="Windows-1252"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="4f3ca8e0-4878-4ae6-80d3-7f9fed988280" Name="MyWebsite" Language="1033" Codepage="Windows-1252" Version="1.0.0" UpgradeCode="317e4313-2314-46e9-ae7e-6cdfee60c05d" Manufacturer="parne">
<Package InstallerVersion="200" Compressed="yes" SummaryCodepage="Windows-1252" Languages="1033" />
<Media Id="1" Cabinet="MyWebsite.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="IISMain" Name="MyWebsite_1.0.0_Web">
<Component Id="Component.config.json" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f86a47420">
<File Id="config.json" Source="config.json" />
<WebVirtualDir Id="VirtDir" Alias="MyWebsiteWebSite" Directory="IISMain" WebSite="MyWebsiteWebSite" xmlns="http://schemas.microsoft.com/wix/IIsExtension">
<WebApplication Id="ImAnAppNameWebApplication" Name="ImAnAppName" WebAppPool="MyWebsiteWebSite_AppPool" />
</WebVirtualDir>
<WebSite Id="MyWebsiteWebSite" Description="MyWebsiteWebSite" Directory="IISMain" xmlns="http://schemas.microsoft.com/wix/IIsExtension">
<WebAddress Id="MyWebsiteWebSite_Address1" IP="*" Port="80" Secure="no" Header="*" />
<WebApplication Id="webapppoolgen" Name="weapppoolgenMyWebsite" WebAppPool="MyWebsiteWebSite_AppPool" />
</WebSite>
<WebAppPool Id="MyWebsiteWebSite_AppPool" Name="MyWebsite" Identity="localSystem" RecycleMinutes="0" IdleTimeout="0" ManagedPipelineMode="Integrated" ManagedRuntimeVersion="v4.0" xmlns="http://schemas.microsoft.com/wix/IIsExtension" />
</Component>
<Directory Id="IISMain.CommandLineParser.1.9.71" Name="CommandLineParser.1.9.71">
<Component Id="Component.CommandLineParser.1.9.71.nupkg" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f2f01fccd">
<File Id="CommandLineParser.1.9.71.nupkg" Source="packages\CommandLineParser.1.9.71\CommandLineParser.1.9.71.nupkg" />
</Component>
<Component Id="Component.readme.txt" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f81b924d8">
<File Id="readme.txt" Source="packages\CommandLineParser.1.9.71\readme.txt" />
</Component>
<Directory Id="IISMain.CommandLineParser.1.9.71.lib" Name="lib">
<Directory Id="IISMain.CommandLineParser.1.9.71.lib.net35" Name="net35">
<Component Id="Component.CommandLine.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f46bd7523">
<File Id="CommandLine.dll" Source="packages\CommandLineParser.1.9.71\lib\net35\CommandLine.dll" />
</Component>
<Component Id="Component.CommandLine.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f1c0c5907">
<File Id="CommandLine.xml" Source="packages\CommandLineParser.1.9.71\lib\net35\CommandLine.xml" />
</Component>
</Directory>
<Directory Id="IISMain.CommandLineParser.1.9.71.lib.net40" Name="net40">
<Component Id="Component.CommandLine.dll.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fb82d7520">
<File Id="CommandLine.dll.1" Source="packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll" />
</Component>
<Component Id="Component.CommandLine.xml.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9faf9cafc4">
<File Id="CommandLine.xml.1" Source="packages\CommandLineParser.1.9.71\lib\net40\CommandLine.xml" />
</Component>
</Directory>
<Directory Id="IISMain.CommandLineParser.1.9.71.lib.net45" Name="net45">
<Component Id="Component.CommandLine.dll.2" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fa023d3f1">
<File Id="CommandLine.dll.2" Source="packages\CommandLineParser.1.9.71\lib\net45\CommandLine.dll" />
</Component>
<Component Id="Component.CommandLine.xml.2" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f96920d95">
<File Id="CommandLine.xml.2" Source="packages\CommandLineParser.1.9.71\lib\net45\CommandLine.xml" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3" Name="Newtonsoft.Json.8.0.3">
<Component Id="Component.Newtonsoft.Json.8.0.3.nupkg" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f888e83b5">
<File Id="Newtonsoft.Json.8.0.3.nupkg" Source="packages\Newtonsoft.Json.8.0.3\Newtonsoft.Json.8.0.3.nupkg" />
</Component>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib" Name="lib">
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.net20" Name="net20">
<Component Id="Component.Newtonsoft.Json.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f6bf2ed5b">
<File Id="Newtonsoft.Json.dll" Source="packages\Newtonsoft.Json.8.0.3\lib\net20\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f6a2bc0c7">
<File Id="Newtonsoft.Json.xml" Source="packages\Newtonsoft.Json.8.0.3\lib\net20\Newtonsoft.Json.xml" />
</Component>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.net35" Name="net35">
<Component Id="Component.Newtonsoft.Json.dll.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f6475882e">
<File Id="Newtonsoft.Json.dll.1" Source="packages\Newtonsoft.Json.8.0.3\lib\net35\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f4bc8a81a">
<File Id="Newtonsoft.Json.xml.1" Source="packages\Newtonsoft.Json.8.0.3\lib\net35\Newtonsoft.Json.xml" />
</Component>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.net40" Name="net40">
<Component Id="Component.Newtonsoft.Json.dll.2" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f4c6be6ff">
<File Id="Newtonsoft.Json.dll.2" Source="packages\Newtonsoft.Json.8.0.3\lib\net40\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml.2" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f33be06eb">
<File Id="Newtonsoft.Json.xml.2" Source="packages\Newtonsoft.Json.8.0.3\lib\net40\Newtonsoft.Json.xml" />
</Component>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.net45" Name="net45">
<Component Id="Component.Newtonsoft.Json.dll.3" Guid="4f3ca8e0-4878-4ae6-80d3-7f9faac37164">
<File Id="Newtonsoft.Json.dll.3" Source="packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml.3" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f90179150">
<File Id="Newtonsoft.Json.xml.3" Source="packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.xml" />
</Component>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.portable_net40_sl5_wp80_win8_wpa81" Name="portable-net40+sl5+wp80+win8+wpa81">
<Component Id="Component.Newtonsoft.Json.dll.4" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f92bacf35">
<File Id="Newtonsoft.Json.dll.4" Source="packages\Newtonsoft.Json.8.0.3\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml.4" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f63d14a49">
<File Id="Newtonsoft.Json.xml.4" Source="packages\Newtonsoft.Json.8.0.3\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.xml" />
</Component>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.lib.portable_net45_wp80_win8_wpa81_dnxcore50" Name="portable-net45+wp80+win8+wpa81+dnxcore50">
<Component Id="Component.Newtonsoft.Json.dll.5" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fef125b9a">
<File Id="Newtonsoft.Json.dll.5" Source="packages\Newtonsoft.Json.8.0.3\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll" />
</Component>
<Component Id="Component.Newtonsoft.Json.xml.5" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fc02ad6ae">
<File Id="Newtonsoft.Json.xml.5" Source="packages\Newtonsoft.Json.8.0.3\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.xml" />
</Component>
</Directory>
</Directory>
<Directory Id="IISMain.Newtonsoft.Json.8.0.3.tools" Name="tools">
<Component Id="Component.install.ps1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f9766bf15">
<File Id="install.ps1" Source="packages\Newtonsoft.Json.8.0.3\tools\install.ps1" />
</Component>
</Directory>
</Directory>
<Directory Id="IISMain.WixSharp.1.0.35.3" Name="WixSharp.1.0.35.3">
<Component Id="Component.readme.txt.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f13118b93">
<File Id="readme.txt.1" Source="packages\WixSharp.1.0.35.3\readme.txt" />
</Component>
<Component Id="Component.WixSharp.1.0.35.3.nupkg" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f755a89e6">
<File Id="WixSharp.1.0.35.3.nupkg" Source="packages\WixSharp.1.0.35.3\WixSharp.1.0.35.3.nupkg" />
</Component>
<Directory Id="IISMain.WixSharp.1.0.35.3.build" Name="build">
<Component Id="Component.SetEnvVar.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f2c9df8cd">
<File Id="SetEnvVar.dll" Source="packages\WixSharp.1.0.35.3\build\SetEnvVar.dll" />
</Component>
<Component Id="Component.WixSharp.targets" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f52b5ce72">
<File Id="WixSharp.targets" Source="packages\WixSharp.1.0.35.3\build\WixSharp.targets" />
</Component>
</Directory>
<Directory Id="IISMain.WixSharp.1.0.35.3.tools" Name="tools">
<Component Id="Component.Install.ps1.1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fd38a38b8">
<File Id="Install.ps1.1" Source="packages\WixSharp.1.0.35.3\tools\Install.ps1" />
</Component>
</Directory>
</Directory>
<Directory Id="IISMain.WixSharp.bin.1.0.35.3" Name="WixSharp.bin.1.0.35.3">
<Component Id="Component.WixSharp.bin.1.0.35.3.nupkg" Guid="4f3ca8e0-4878-4ae6-80d3-7f9face407ed">
<File Id="WixSharp.bin.1.0.35.3.nupkg" Source="packages\WixSharp.bin.1.0.35.3\WixSharp.bin.1.0.35.3.nupkg" />
</Component>
<Directory Id="IISMain.WixSharp.bin.1.0.35.3.lib" Name="lib">
<Component Id="Component.BootstrapperCore.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fc4faada7">
<File Id="BootstrapperCore.dll" Source="packages\WixSharp.bin.1.0.35.3\lib\BootstrapperCore.dll" />
</Component>
<Component Id="Component.BootstrapperCore.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9ff18eada6">
<File Id="BootstrapperCore.xml" Source="packages\WixSharp.bin.1.0.35.3\lib\BootstrapperCore.xml" />
</Component>
<Component Id="Component.Microsoft.Deployment.WindowsInstaller.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f3003d3ab">
<File Id="Microsoft.Deployment.WindowsInstaller.dll" Source="packages\WixSharp.bin.1.0.35.3\lib\Microsoft.Deployment.WindowsInstaller.dll" />
</Component>
<Component Id="Component.Microsoft.Deployment.WindowsInstaller.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f3002d3b7">
<File Id="Microsoft.Deployment.WindowsInstaller.xml" Source="packages\WixSharp.bin.1.0.35.3\lib\Microsoft.Deployment.WindowsInstaller.xml" />
</Component>
<Component Id="Component.WixSharp.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f822b9b0b">
<File Id="WixSharp.dll" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.dll" />
</Component>
<Component Id="Component.WixSharp.Msi.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f84890cfb">
<File Id="WixSharp.Msi.dll" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.Msi.dll" />
</Component>
<Component Id="Component.WixSharp.Msi.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9f0d450cfa">
<File Id="WixSharp.Msi.xml" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.Msi.xml" />
</Component>
<Component Id="Component.WixSharp.UI.dll" Guid="4f3ca8e0-4878-4ae6-80d3-7f9ff66e2753">
<File Id="WixSharp.UI.dll" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.UI.dll" />
</Component>
<Component Id="Component.WixSharp.UI.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fcb30b00f">
<File Id="WixSharp.UI.xml" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.UI.xml" />
</Component>
<Component Id="Component.WixSharp.xml" Guid="4f3ca8e0-4878-4ae6-80d3-7f9ff96f9b0c">
<File Id="WixSharp.xml" Source="packages\WixSharp.bin.1.0.35.3\lib\WixSharp.xml" />
</Component>
</Directory>
</Directory>
<Component Id="Certificate1" Guid="4f3ca8e0-4878-4ae6-80d3-7f9fde40362a" KeyPath="yes">
<Certificate Id="cert" CertificatePath="C:\projects\QuikPak\cert.pfx" Name="cert" Request="no" StoreLocation="localMachine" StoreName="personal" xmlns="http://schemas.microsoft.com/wix/IIsExtension" />
<RemoveFolder Id="IISMain" On="uninstall" />
</Component>
</Directory>
</Directory>
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize" />
<Upgrade Id="317e4313-2314-46e9-ae7e-6cdfee60c05d">
<UpgradeVersion Minimum="0.0.0.1" Maximum="99.0.0.0" IncludeMinimum="yes" IncludeMaximum="no" Property="UPGRADEFOUND" />
</Upgrade>
<Binary Id="cert" SourceFile="cert.pfx" />
<Feature Id="Complete" Title="Complete" Absent="allow" Level="1">
<ComponentRef Id="Component.config.json" />
<ComponentRef Id="Component.CommandLineParser.1.9.71.nupkg" />
<ComponentRef Id="Component.readme.txt" />
<ComponentRef Id="Component.CommandLine.dll" />
<ComponentRef Id="Component.CommandLine.xml" />
<ComponentRef Id="Component.CommandLine.dll.1" />
<ComponentRef Id="Component.CommandLine.xml.1" />
<ComponentRef Id="Component.CommandLine.dll.2" />
<ComponentRef Id="Component.CommandLine.xml.2" />
<ComponentRef Id="Component.Newtonsoft.Json.8.0.3.nupkg" />
<ComponentRef Id="Component.Newtonsoft.Json.dll" />
<ComponentRef Id="Component.Newtonsoft.Json.xml" />
<ComponentRef Id="Component.Newtonsoft.Json.dll.1" />
<ComponentRef Id="Component.Newtonsoft.Json.xml.1" />
<ComponentRef Id="Component.Newtonsoft.Json.dll.2" />
<ComponentRef Id="Component.Newtonsoft.Json.xml.2" />
<ComponentRef Id="Component.Newtonsoft.Json.dll.3" />
<ComponentRef Id="Component.Newtonsoft.Json.xml.3" />
<ComponentRef Id="Component.Newtonsoft.Json.dll.4" />
<ComponentRef Id="Component.Newtonsoft.Json.xml.4" />
<ComponentRef Id="Component.Newtonsoft.Json.dll.5" />
<ComponentRef Id="Component.Newtonsoft.Json.xml.5" />
<ComponentRef Id="Component.install.ps1" />
<ComponentRef Id="Component.readme.txt.1" />
<ComponentRef Id="Component.WixSharp.1.0.35.3.nupkg" />
<ComponentRef Id="Component.SetEnvVar.dll" />
<ComponentRef Id="Component.WixSharp.targets" />
<ComponentRef Id="Component.Install.ps1.1" />
<ComponentRef Id="Component.WixSharp.bin.1.0.35.3.nupkg" />
<ComponentRef Id="Component.BootstrapperCore.dll" />
<ComponentRef Id="Component.BootstrapperCore.xml" />
<ComponentRef Id="Component.Microsoft.Deployment.WindowsInstaller.dll" />
<ComponentRef Id="Component.Microsoft.Deployment.WindowsInstaller.xml" />
<ComponentRef Id="Component.WixSharp.dll" />
<ComponentRef Id="Component.WixSharp.Msi.dll" />
<ComponentRef Id="Component.WixSharp.Msi.xml" />
<ComponentRef Id="Component.WixSharp.UI.dll" />
<ComponentRef Id="Component.WixSharp.UI.xml" />
<ComponentRef Id="Component.WixSharp.xml" />
<ComponentRef Id="Certificate1" />
</Feature>
</Product>
</Wix>

View File

@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.25420.1 VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuikPak", "QuikPak\QuikPak.csproj", "{906448E0-73EA-4283-BAB1-4C81EEFC4EFA}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuikPak", "QuikPak\QuikPak.csproj", "{906448E0-73EA-4283-BAB1-4C81EEFC4EFA}"
EndProject EndProject
@@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig .editorconfig = .editorconfig
build.cmd = build.cmd build.cmd = build.cmd
config.json = config.json
QuikPak\choco\quikpak.nuspec = QuikPak\choco\quikpak.nuspec QuikPak\choco\quikpak.nuspec = QuikPak\choco\quikpak.nuspec
Readme.md = Readme.md Readme.md = Readme.md
EndProjectSection EndProjectSection

24
QuikPak/Cert.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuikPak
{
public class Cert : IEquatable<Cert>
{
public string CertificatePath { get; set; }
public string PfxPassword { get; set; }
public bool Equals(Cert other)
{
return string.Equals(this.CertificatePath, other.CertificatePath);
}
public override int GetHashCode()
{
return new { CertificatePath, PfxPassword }.GetHashCode();
}
}
}

View File

@@ -1,6 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using Newtonsoft.Json;
using WixSharp;
namespace QuikPak namespace QuikPak
{ {
@@ -17,9 +15,7 @@ namespace QuikPak
public int IdleTimeout { get; set; } = 0; public int IdleTimeout { get; set; } = 0;
public string ManagedPipelineMode { get; set; } = "Integrated"; public string ManagedPipelineMode { get; set; } = "Integrated";
public string ManagedRuntimeVersion { get; set; } = "v4.0"; public string ManagedRuntimeVersion { get; set; } = "v4.0";
public bool Enable64Bits { get; set; } = false; public ICollection<Cert> Certificates { get; set; } = new HashSet<Cert>();
public bool PreserveTempFiles { get; set; } = false;
public IEnumerable<Cert> Certificates { get; set; }
} }
public class Endpoint public class Endpoint
@@ -28,14 +24,4 @@ namespace QuikPak
public string DnsName { get; set; } public string DnsName { get; set; }
public bool Secure { get; set; } = false; public bool Secure { get; set; } = false;
} }
}
public class Cert
{
public string Name { get; set; }
public string Path { get; set; }
public string Password { get; set; }
[JsonIgnore]
public Binary BinaryKey { get; set; }
}
}

View File

@@ -1,17 +0,0 @@
{
"UpgradeCode": "317e4313-2314-46e9-ae7e-6cdfee60c05d",
"Name": "terribledev",
"Version": "1.0.0.1",
"Endpoints": [
{
"port": 10000,
"DnsName": "*",
"Secure": false
},
{
"port": 8000,
"DnsName": "localhost",
"Secure" : false
}
]
}

View File

@@ -18,4 +18,4 @@ namespace QuikPak
return HelpText.AutoBuild(this); return HelpText.AutoBuild(this);
} }
} }
} }

View File

@@ -2,10 +2,8 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using WixSharp;
using System.Linq; using System.Linq;
using System.Xml; using WixSharp;
using System.Xml.Linq;
namespace QuikPak namespace QuikPak
{ {
@@ -26,7 +24,7 @@ namespace QuikPak
} }
var config = JsonConvert.DeserializeObject<Config>(System.IO.File.ReadAllText(options.Config)); var config = JsonConvert.DeserializeObject<Config>(System.IO.File.ReadAllText(options.Config));
var addresses = new List<WebSite.WebAddress>(); var addresses = new List<WebSite.WebAddress>();
Verifier.Verify(config);
foreach(var Endpoint in config.Endpoints) foreach(var Endpoint in config.Endpoints)
{ {
var attr = new Attributes() var attr = new Attributes()
@@ -40,25 +38,40 @@ namespace QuikPak
} }
addresses.Add(new WebSite.WebAddress() addresses.Add(new WebSite.WebAddress()
{ {
//Port = Endpoint.Port,
//Address = Endpoint.DnsName,
Attributes = attr Attributes = attr
}); });
} }
var project = new Project(config.Name)
var items = new List<WixObject>();
foreach(var cert in config.Certificates)
{
var name = System.IO.Path.GetFileNameWithoutExtension(cert.CertificatePath);
items.Add(new Binary(new Id(name), cert.CertificatePath));
items.Add(new Certificate(name, StoreLocation.localMachine, StoreName.personal, cert.CertificatePath, authorityRequest: false));
}
var project = new Project(config.Name, items.ToArray())
{ {
Dirs = new[] Dirs = new[]
{ {
new Dir(new Id("IISMain"), config.Name + "_" +config.Version +"_Web", new Dir(new Id("IISMain"), config.Name + "_" +config.Version.ToString() +"_Web",
new Files(System.IO.Path.Combine(options.Path, "**")), new Files(System.IO.Path.Combine(options.Path, "**")),
new File(options.Config, new File(options.Config,
new IISVirtualDir new IISVirtualDir
{ {
Name = config.Name + "_Web_VDIR", Name = config.Name + "WebSite",
WebSite = new WebSite(config.Name) AppName = "ImAnAppName",
WebSite = new WebSite(new Id(config.Name + "WebSite"), config.Name + "WebSite")
{ {
InstallWebSite = true, InstallWebSite = true,
Description = config.Name, Addresses = addresses.ToArray(),
Addresses = addresses.ToArray() Attributes = new Dictionary<string, string>()
{
// ["awesome"] = "yo"
}
}, },
WebAppPool = new WebAppPool(config.Name) { WebAppPool = new WebAppPool(config.Name) {
Attributes = new Dictionary<string, string>() { Attributes = new Dictionary<string, string>() {
@@ -66,29 +79,20 @@ namespace QuikPak
["RecycleMinutes"] = config.RecycleMinutes.ToString(), ["RecycleMinutes"] = config.RecycleMinutes.ToString(),
["IdleTimeout"] = config.IdleTimeout.ToString(), ["IdleTimeout"] = config.IdleTimeout.ToString(),
["ManagedPipelineMode"] = config.ManagedPipelineMode, ["ManagedPipelineMode"] = config.ManagedPipelineMode,
["ManagedRuntimeVersion"] = config.ManagedRuntimeVersion ["ManagedRuntimeVersion"] = config.ManagedRuntimeVersion,
} }
} },
}) })
) )
}, },
Version = new Version(config.Version) { }, Version = new Version(config.Version) { },
GUID = string.IsNullOrWhiteSpace(config.Id) ? Guid.NewGuid() : new Guid(config.Id), GUID = string.IsNullOrWhiteSpace(config.Id) ? Guid.NewGuid() : new Guid(config.Id),
UI = WUI.WixUI_ProgressOnly, UI = WUI.WixUI_ProgressOnly,
OutFileName = config.Name, OutFileName = config.Name,
PreserveTempFiles = config.PreserveTempFiles, PreserveTempFiles = true,
Binaries = config.Certificates?.Select(a=> {
var bin = new Binary(a.Path);
a.BinaryKey = bin;
return bin;
}).ToArray() ?? new Binary[0],
UpgradeCode = new Guid(config.UpgradeCode), UpgradeCode = new Guid(config.UpgradeCode),
Certificates = config.Certificates?.Select(a => new Certificate() { PFXPassword = a.Password, BinaryKey = a.BinaryKey.Id, StoreName = StoreName.personal, StoreLocation = StoreLocation.localMachine, Name = a.Name}).ToArray() ?? new Certificate[0]
}; };
if(config.Enable64Bits)
{
project.Platform = Platform.x64;
}
project.Properties.Add(new Property("REINSTALLMODE", "dmus")); project.Properties.Add(new Property("REINSTALLMODE", "dmus"));
project.MajorUpgrade = new MajorUpgrade() { AllowDowngrades = true, Schedule = UpgradeSchedule.afterInstallInitialize }; project.MajorUpgrade = new MajorUpgrade() { AllowDowngrades = true, Schedule = UpgradeSchedule.afterInstallInitialize };
project.MajorUpgradeStrategy = new MajorUpgradeStrategy() project.MajorUpgradeStrategy = new MajorUpgradeStrategy()
@@ -102,55 +106,16 @@ namespace QuikPak
}, },
RemoveExistingProductAfter = Step.InstallInitialize RemoveExistingProductAfter = Step.InstallInitialize
}; };
project.IncludeWixExtension(WixExtension.IIs); project.WixSourceGenerated += doc =>
Compiler.WixSourceGenerated += (document) => doc.FindAll("WebSite")
{ .ForEach(x => x.AddElement(new System.Xml.Linq.XElement("WebApplication"), attributes: new Dictionary<string, string>()
string appPoolId = string.Empty;
var certs = new List<XElement>();
XElement website = null;
foreach(var node in document.Descendants().ToList())
{ {
if(node == null || node.Name == null) continue; ["Id"] = "webapppoolgen",
var nodeName = node.Name.ToString(); ["Name"] = "weapppoolgen" + config.Name,
if(nodeName.EndsWith("WebVirtualDir", true)) ["WebAppPool"] = $"{config.Name}WebSite_AppPool"
{ }));
//remove virdir's as we should just use sites
node.Remove();
}
if(nodeName.EndsWith("WebAppPool", true))
{
appPoolId = node.Attributes().First(a => a.Name == "Id").Value;
}
if(nodeName.EndsWith("Certificate", true))
{
certs.Add(node);
}
if(nodeName.EndsWith("WebSite", true))
{
website = node;
}
}
if(string.IsNullOrWhiteSpace(appPoolId))
{
Console.Error.WriteLine("App pool unable to be identified. A major problem has occured");
Environment.Exit(1);
}
if(website == null)
{
Console.Error.WriteLine("website unable to be identified. A major problem has occured");
Environment.Exit(1);
}
XNamespace name = "http://schemas.microsoft.com/wix/IIsExtension";
foreach(var cert in certs)
{
website.Add(new XElement(name+"CertificateRef", new XAttribute("Id", cert.Attribute("Id").Value)));
}
website.Add(new XElement(name + "WebApplication", new XAttribute("Id", config.Name + "webapp"), new XAttribute("Name", config.Name + "webapp"), new XAttribute("WebAppPool", appPoolId)));
};
Compiler.BuildMsi(project); Compiler.BuildMsi(project);
} }
} }
} }

View File

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.0.0")] [assembly: AssemblyVersion("0.7.1.0")]
[assembly: AssemblyFileVersion("0.1.0.0")] [assembly: AssemblyFileVersion("0.7.1.0")]

View File

@@ -35,7 +35,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="BootstrapperCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL"> <Reference Include="BootstrapperCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL">
<HintPath>..\packages\WixSharp.bin.1.3.0.0\lib\BootstrapperCore.dll</HintPath> <HintPath>..\packages\WixSharp.bin.1.0.35.3\lib\BootstrapperCore.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="CommandLine, Version=1.9.71.2, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL"> <Reference Include="CommandLine, Version=1.9.71.2, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL">
@@ -43,7 +43,7 @@
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL"> <Reference Include="Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL">
<HintPath>..\packages\WixSharp.bin.1.3.0.0\lib\Microsoft.Deployment.WindowsInstaller.dll</HintPath> <HintPath>..\packages\WixSharp.bin.1.0.35.3\lib\Microsoft.Deployment.WindowsInstaller.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
@@ -58,31 +58,39 @@
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="WixSharp, Version=1.3.0.0, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL"> <Reference Include="WixSharp, Version=1.0.35.3, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL">
<HintPath>..\packages\WixSharp.bin.1.3.0.0\lib\WixSharp.dll</HintPath> <HintPath>..\packages\WixSharp.bin.1.0.35.3\lib\WixSharp.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="WixSharp.Msi, Version=1.3.0.0, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL"> <Reference Include="WixSharp.Msi, Version=1.0.35.0, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL">
<HintPath>..\packages\WixSharp.bin.1.3.0.0\lib\WixSharp.Msi.dll</HintPath> <HintPath>..\packages\WixSharp.bin.1.0.35.3\lib\WixSharp.Msi.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="WixSharp.UI, Version=1.3.0.0, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL"> <Reference Include="WixSharp.UI, Version=1.0.35.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2, processorArchitecture=MSIL">
<HintPath>..\packages\WixSharp.bin.1.3.0.0\lib\WixSharp.UI.dll</HintPath> <HintPath>..\packages\WixSharp.bin.1.0.35.3\lib\WixSharp.UI.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Cert.cs" />
<Compile Include="Config.cs" /> <Compile Include="Config.cs" />
<Compile Include="Options.cs" /> <Compile Include="Options.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Verifier.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
<None Include="Config.json" />
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\WixSharp.1.0.35.3\build\WixSharp.targets" Condition="Exists('..\packages\WixSharp.1.0.35.3\build\WixSharp.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\WixSharp.1.0.35.3\build\WixSharp.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\WixSharp.1.0.35.3\build\WixSharp.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
@@ -90,12 +98,5 @@
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
<Import Project="..\packages\WixSharp.1.3.0.0\build\WixSharp.targets" Condition="Exists('..\packages\WixSharp.1.3.0.0\build\WixSharp.targets')" /> <UsingTask AssemblyFile="packages\WixSharp.1.0.35.3\build\SetEnvVar.dll" TaskName="SetEnvVar" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\WixSharp.1.3.0.0\build\WixSharp.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\WixSharp.1.3.0.0\build\WixSharp.targets'))" />
</Target>
<UsingTask AssemblyFile="$(SolutionDir)packages\WixSharp.1.3.0.0\build\SetEnvVar.dll" TaskName="SetEnvVar" />
</Project> </Project>

27
QuikPak/Verifier.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuikPak
{
public static class Verifier
{
public static void Verify(Config config)
{
if(string.IsNullOrWhiteSpace(config.UpgradeCode))
{
throw new Exception("Upgrade code required");
}
foreach(var certificate in config.Certificates)
{
if(string.IsNullOrWhiteSpace(certificate.CertificatePath) || !File.Exists(certificate.CertificatePath))
{
throw new Exception("Certificate path could not be found");
}
}
}
}
}

View File

@@ -5,27 +5,29 @@
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages --> <!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
<id>quikpak</id> <id>quikpak</id>
<title>QuikPak (Install)</title> <title>QuikPak (Install)</title>
<version>0.10.0-beta2</version> <version>0.7.1</version>
<authors>Tommy Parnell</authors> <authors>Tommy Parnell</authors>
<owners>Tommy Parnell</owners> <owners>Tommy Parnell</owners>
<summary>quickly pack directory's as IIS websites</summary> <summary>quickly pack directory's as IIS websites</summary>
<description>quickly pack directory's as IIS websites <description>quickly pack directory's as IIS websites
</description> </description>
<projectUrl>https://github.com/terribledev/QuikPak</projectUrl> <projectUrl>https://github.com/tparnell8/QuikPak</projectUrl>
<packageSourceUrl>https://github.com/terribledev/QuikPak</packageSourceUrl> <packageSourceUrl>https://github.com/tparnell8/QuikPak</packageSourceUrl>
<!--<projectSourceUrl></projectSourceUrl> <!--<projectSourceUrl></projectSourceUrl>
<docsUrl></docsUrl> <docsUrl></docsUrl>
<mailingListUrl></mailingListUrl> <mailingListUrl></mailingListUrl>
<bugTrackerUrl></bugTrackerUrl>--> <bugTrackerUrl></bugTrackerUrl>-->
<tags>MSI creation IIS</tags> <tags>MSI creation IIS</tags>
<copyright></copyright> <copyright></copyright>
<licenseUrl>https://github.com/terribledev/QuikPak/blob/master/LICENSE.md</licenseUrl> <licenseUrl>https://github.com/tparnell8/QuikPak/blob/master/LICENSE.md</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies> <dependencies>
<dependency id="wixtoolset" version="3.10.3.300701" /> <dependency id="wixtoolset" />
</dependencies> </dependencies>
<!--<provides></provides>-->
</metadata> </metadata>
<files> <files>
<file src="..\bin\Release\**" target="" /> <file src="tools\**" target="tools" />
<file src="..\bin\Release\**" target="" />
</files> </files>
</package> </package>

View File

@@ -0,0 +1,91 @@
## Summary
How do I create packages? See https://github.com/chocolatey/choco/wiki/CreatePackages
If you are submitting packages to the community feed (https://chocolatey.org)
always try to ensure you have read, understood and adhere to the create
packages wiki link above.
## Automatic Packages?
Consider making this package an automatic package, for the best
maintainability over time. Read up at https://github.com/chocolatey/choco/wiki/AutomaticPackages
## Shim Generation
Any executables you include in the package or download (but don't call
install against using the built-in functions) will be automatically shimmed.
This means those executables will automatically be included on the path.
Shim generation runs whether the package is self-contained or uses automation
scripts.
By default, these are considered console applications.
If the application is a GUI, you should create an empty file next to the exe
named 'name.exe.gui' e.g. 'bob.exe' would need a file named 'bob.exe.gui'.
See https://github.com/chocolatey/choco/wiki/CreatePackages#how-do-i-set-up-batch-redirects-for-applications-that-have-a-gui
If you want to ignore the executable, create an empty file next to the exe
named 'name.exe.ignore' e.g. 'bob.exe' would need a file named
'bob.exe.ignore'.
See https://github.com/chocolatey/choco/wiki/CreatePackages#how-do-i-exclude-executables-from-getting-batch-redirects
## Self-Contained?
If you have a self-contained package, you can remove the automation scripts
entirely and just include the executables, they will automatically get shimmed,
which puts them on the path. Ensure you have the legal right to distribute
the application though. See https://github.com/chocolatey/choco/wiki/Legal.
You should read up on the Shim Generation section to familiarize yourself
on what to do with GUI applications and/or ignoring shims.
## Automation Scripts
You have a powerful use of Chocolatey, as you are using PowerShell. So you
can do just about anything you need. Choco has some very handy built-in
functions that you can use, these are sometimes called the helpers.
### Built-In Functions
https://github.com/chocolatey/choco/wiki/HelpersReference
A note about a couple:
* Get-BinRoot - this is a horribly named function that doesn't do what new folks think it does. It gets you the 'tools' root, which by default is set to 'c:\tools', not the chocolateyInstall bin folder.
* Install-BinFile - used for non-exe files - executables are automatically shimmed...
* Uninstall-BinFile - used for non-exe files - executables are automatically shimmed
### Getting package specific information
Use the package parameters pattern - see https://github.com/chocolatey/choco/wiki/How-To-Parse-PackageParameters-Argument
### Need to mount an ISO?
https://github.com/chocolatey/choco/wiki/How-To-Mount-An-Iso-In-Chocolatey-Package
### Environment Variables
Chocolatey makes a number of environment variables available (You can access any of these with $env:TheVariableNameBelow):
* TEMP = Overridden to the CacheLocation, but may be the same as the original TEMP folder
* ChocolateyInstall = Top level folder where Chocolatey is installed
* chocolateyPackageName = The name of the package, equivalent to the id in the nuspec (0.9.9+)
* chocolateyPackageVersion = The version of the package, equivalent to the version in the nuspec (0.9.9+)
* chocolateyPackageFolder = The top level location of the package folder
#### Advanced Environment Variables
The following are more advanced settings:
* chocolateyPackageParameters = (0.9.8.22+)
* CHOCOLATEY_VERSION = The version of Choco you normally see. Use if you are 'lighting' things up based on choco version. (0.9.9+)
- Otherwise take a dependency on the specific version you need.
* chocolateyForceX86 = If available and set to 'true', then user has requested 32bit version. (0.9.9+)
- Automatically handled in built in Choco functions.
* OS_PLATFORM = Like Windows, OSX, Linux. (0.9.9+)
* OS_VERSION = The version of OS, like 6.1 something something for Windows. (0.9.9+)
* OS_NAME = The reported name of the OS. (0.9.9+)
* IS_PROCESSELEVATED = Is the process elevated? (0.9.9+)
#### Experimental Environment Variables
The following are experimental or use not recommended:
* OS_IS64BIT = This may not return correctly - it may depend on the process the app is running under (0.9.9+)
* CHOCOLATEY_VERSION_PRODUCT = the version of Choco that may match CHOCOLATEY_VERSION but may be different (0.9.9+)
- it's based on git describe
* IS_ADMIN = Is the user an administrator? But doesn't tell you if the process is elevated. (0.9.9+)
* chocolateyInstallOverride = Not for use in package automation scripts. (0.9.9+)
* chocolateyInstallArguments = the installer arguments meant for the native installer. You should use chocolateyPackageParameters intead. (0.9.9+)

View File

@@ -2,6 +2,6 @@
<packages> <packages>
<package id="CommandLineParser" version="1.9.71" targetFramework="net45" /> <package id="CommandLineParser" version="1.9.71" targetFramework="net45" />
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net45" /> <package id="Newtonsoft.Json" version="8.0.3" targetFramework="net45" />
<package id="WixSharp" version="1.3.0.0" targetFramework="net45" /> <package id="WixSharp" version="1.0.35.3" targetFramework="net45" />
<package id="WixSharp.bin" version="1.3.0.0" targetFramework="net45" /> <package id="WixSharp.bin" version="1.0.35.3" targetFramework="net45" />
</packages> </packages>

View File

@@ -10,7 +10,7 @@ You can also install it from our public feed which might have newer versions fas
## How to use ## How to use
Create a json config file that looks something like this. The upgrade code must be a unique uuid, that will identify your msi. Create a json config file that looks something like this
```json ```json
@@ -30,37 +30,8 @@ Create a json config file that looks something like this. The upgrade code must
``` ```
then call QuikPak.exe -c path\to\your\config.jsondfsa -x path\to\your\web\content then call QuikPak.exe -c path\to\your\config.json -x path\to\your\web\content
## Certificates ## TODO
You can also add certificates to your json bindings. Allow someone to include a certificate optionally for secure bindings
```json
{
"UpgradeCode": "317e4313-2314-46e9-ae7e-6cdfee60c05d",
"Name": "terribledev",
"Version": "1.0.0.1",
"Endpoints": [
{
"port": 10000,
"DnsName": "*",
"Secure": false
},
{
"port": 8000,
"DnsName": "localhost",
"Secure" : false
}
],
"Certificates":[
{
"Name": "MyCert",
"Path": "awesome.pfx",
"Password": "password"
}
]
}
```

13
config.json Normal file
View File

@@ -0,0 +1,13 @@
{
"UpgradeCode": "317e4313-2314-46e9-ae7e-6cdfee60c05d",
"Name": "MyWebsite",
"Version": "1.0.0",
"Endpoints": [
{
"port": 80,
"DnsName": "*",
"Secure": false
}
],
"Certificates": [{"CertificatePath": "C:\\projects\\QuikPak\\cert.pfx", "PfxPassword": "Andromeda1"}]
}