Merge pull request #1060 from mattias-symphony/SDA-2389

feat: SDA-2389 Added version number to installer
This commit is contained in:
mattias-symphony 2020-08-28 08:26:13 +02:00 committed by GitHub
commit 020ed0f54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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