Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Do not use WiX version binding when creating template
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Mar 8, 2022
1 parent 4895a21 commit 11e471f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Squirrel/Internal/HelperExe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static async Task CompileWixTemplateToMsi(string wxsTarget, string output
if (processResult.Item1 != 0) {
var msg = String.Format(
"Failed to compile WiX template, command invoked was: '{0} {1}'\n\nOutput was:\n{2}",
"candle.exe", candleParams, processResult.Item2);
"candle.exe", Utility.ArgsToCommandLine(candleParams), processResult.Item2);

throw new Exception(msg);
}
Expand All @@ -109,7 +109,7 @@ public static async Task CompileWixTemplateToMsi(string wxsTarget, string output
if (processResult.Item1 != 0) {
var msg = String.Format(
"Failed to link WiX template, command invoked was: '{0} {1}'\n\nOutput was:\n{2}",
"light.exe", lightParams, processResult.Item2);
"light.exe", Utility.ArgsToCommandLine(lightParams), processResult.Item2);

throw new Exception(msg);
}
Expand Down
4 changes: 2 additions & 2 deletions src/SquirrelCli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ static void Releasify(ReleasifyOptions options)

if (!String.IsNullOrEmpty(options.msi)) {
bool x64 = options.msi.Equals("x64");
var msiPath = createMsiPackage(targetSetupExe, new ZipPackage(package), x64).Result;
var msiPath = createMsiPackage(targetSetupExe, bundledzp, x64).Result;
options.SignPEFile(msiPath);
}

Expand All @@ -387,7 +387,7 @@ static async Task<string> createMsiPackage(string setupExe, IPackage package, bo
{ "Id", package.Id },
{ "Title", package.ProductName },
{ "Author", package.ProductCompany },
{ "Version", Regex.Replace(package.Version.ToString(), @"-.*$", "") },
{ "Version", package.Version.Version.ToString() },
{ "Summary", package.ProductDescription },
{ "Codepage", $"{culture}" },
{ "Platform", packageAs64Bit ? "x64" : "x86" },
Expand Down
2 changes: 1 addition & 1 deletion vendor/wix/template.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
<Product Id="*" Name="{{Title}} Deployment Tool" Language="1033" Codepage="{{Codepage}}" Version="!(bind.FileVersion.{{Id}}.exe)" UpgradeCode="{{IdAsGuid1}}" Manufacturer="{{Author}}">
<Product Id="*" Name="{{Title}} Deployment Tool" Language="1033" Codepage="{{Codepage}}" Version="{{Version}}" UpgradeCode="{{IdAsGuid1}}" Manufacturer="{{Author}}">

<Package Description="This package installs a deployment tool for {{Title}}. Not {{Title}} itself. {{Title}} is only installed if a user logs into the machine." InstallScope="perMachine" Comments="Comments" InstallerVersion="200" Compressed="yes" Platform="{{Platform}}"/>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A later version of this product is already installed. Setup will now exit."/>
Expand Down

0 comments on commit 11e471f

Please sign in to comment.