fix MSI version parsing (#5475)

This commit is contained in:
Travis Plunk
2017-11-15 18:43:14 -08:00
committed by GitHub
parent 35a46a75bc
commit 90f455b9ec
+9 -1
View File
@@ -1904,7 +1904,15 @@ function Get-PackageVersionAsMajorMinorBuildRevision
} elseif (1 -lt $packageVersionTokens.Count) {
# We have all the four fields
$packageBuildTokens = ([regex]::Matches($packageVersionTokens[1], "\d+"))[0].value
$packageVersion = $packageVersion + '.' + $packageBuildTokens
if ($packageBuildTokens)
{
$packageVersion = $packageVersion + '.' + $packageBuildTokens
}
else
{
$packageVersion = $packageVersion
}
}
$packageVersion