win_package: remove case sensitive check for msi extension (#34476)

This commit is contained in:
Jordan Borean 2018-01-05 07:11:22 +10:00 committed by GitHub
commit da69f5aeae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -173,7 +173,7 @@ Function Get-ProgramMetadata($state, $path, $product_id, $credential, $creates_p
# set the location type and validate the path
if ($path -ne $null) {
if ($path.EndsWith(".msi")) {
if ($path.EndsWith(".msi", [System.StringComparison]::CurrentCultureIgnoreCase)) {
$metadata.msi = $true
} else {
$metadata.msi = $false