SDA-2389 Added version number to installer

This commit is contained in:
Mattias Gustavsson 2020-08-27 12:03:17 +02:00
parent 7d5f7b0c6d
commit 060afd0a0b

View File

@ -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);
}
}