mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 23:46:51 +08:00
The path was incorrect for x86 Windows machines since they use "Program Files" without the "(x86)" suffix. Change-Id: Iecfee3b568a4d23b056fab230891f7eeb4d63cc8 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Johanna Äijälä <johanna.aijala@qt.io>
24 lines
691 B
PowerShell
24 lines
691 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
function Install-VCLibsDebug
|
|
{
|
|
Param (
|
|
[string]$Arch
|
|
)
|
|
|
|
$installedPackage = Get-AppxPackage Microsoft.VCLibs.140.00.Debug | Where-Object {$_.Architecture -eq $Arch}
|
|
if ($installedPackage) {
|
|
Write-Host "Debug VCLibs already installed for $Arch."
|
|
return
|
|
}
|
|
|
|
if (Is64BitWinHost) {
|
|
$ProgramFiles = "Program Files (x86)"
|
|
} else {
|
|
$ProgramFiles = "Program Files"
|
|
}
|
|
Add-AppxPackage "C:\$ProgramFiles\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\Appx\Debug\$Arch\Microsoft.VCLibs.$Arch.Debug.14.00.appx"
|
|
|
|
Write-Host "Debug VCLibs successfully installed for $Arch."
|
|
}
|