From eb76fa5db64bc579429efff4634dbde372d7db15 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Tue, 4 Apr 2017 10:03:39 -0400 Subject: [PATCH] enable 64 bits --- QuikPak/Config.cs | 2 +- QuikPak/Program.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/QuikPak/Config.cs b/QuikPak/Config.cs index 69f8ce9..eaa0864 100644 --- a/QuikPak/Config.cs +++ b/QuikPak/Config.cs @@ -17,7 +17,7 @@ namespace QuikPak public int IdleTimeout { get; set; } = 0; public string ManagedPipelineMode { get; set; } = "Integrated"; public string ManagedRuntimeVersion { get; set; } = "v4.0"; - + public bool Enable64Bits { get; set; } = false; public IEnumerable Certificates { get; set; } } diff --git a/QuikPak/Program.cs b/QuikPak/Program.cs index 13c51b2..482e0e2 100644 --- a/QuikPak/Program.cs +++ b/QuikPak/Program.cs @@ -76,7 +76,7 @@ namespace QuikPak GUID = string.IsNullOrWhiteSpace(config.Id) ? Guid.NewGuid() : new Guid(config.Id), UI = WUI.WixUI_ProgressOnly, OutFileName = config.Name, - PreserveTempFiles = false, + PreserveTempFiles = true, Binaries = config.Certificates?.Select(a=> { var bin = new Binary(a.Path); a.BinaryKey = bin; @@ -85,6 +85,10 @@ namespace QuikPak 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.MajorUpgrade = new MajorUpgrade() { AllowDowngrades = true, Schedule = UpgradeSchedule.afterInstallInitialize }; project.MajorUpgradeStrategy = new MajorUpgradeStrategy()