mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-15 16:56:05 +08:00
Provisioning: Fix vclib path on x86 machines
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>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
function Install-VCLibsDebug
|
||||
{
|
||||
Param (
|
||||
@@ -10,7 +12,12 @@ function Install-VCLibsDebug
|
||||
return
|
||||
}
|
||||
|
||||
Add-AppxPackage "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\Appx\Debug\$Arch\Microsoft.VCLibs.$Arch.Debug.14.00.appx"
|
||||
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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user