From 060afd0a0b3bf4d7bc9c32327a2744a53990c47a Mon Sep 17 00:00:00 2001 From: Mattias Gustavsson Date: Thu, 27 Aug 2020 12:03:17 +0200 Subject: [PATCH] SDA-2389 Added version number to installer --- installer/win/Symphony.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer/win/Symphony.cs b/installer/win/Symphony.cs index fe1c22bb..7b712843 100644 --- a/installer/win/Symphony.cs +++ b/installer/win/Symphony.cs @@ -103,9 +103,12 @@ class Script new LaunchCondition("VersionNT>=600 AND WindowsBuild>=6001", "OS not supported") ); + // The build script which calls the wix# builder, will be run from a command environment which has %SYMVER% set. + // So we just extract that version string, create a Version object from it, and pass it to out project definition. + var version = System.Environment.GetEnvironmentVariable("SYMVER"); + project.Version = new System.Version(version); + // Generate an MSI from all settings done above Compiler.BuildMsi(project); } } - -