aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/helpers.ps1
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-01 11:40:15 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2017-04-03 12:06:27 +0000
commit285ee106e7748a08ab1271b140cfe0429587e2a6 (patch)
treebac0ab40f6e38462eaf4337b724ba2f32cba89c4 /coin/provisioning/common/helpers.ps1
parent95223c7466afb4791f630cd76c6574f13e7506b3 (diff)
parente00cb3ac596db7200108174cd85c66f4e3c1107a (diff)
Merge remote-tracking branch 'origin/5.6' into 5.9v5.9.0-beta1
Conflicts: coin/platform_configs/default.txt coin/platform_configs/qt5.txt This also fixes the 7Z extraction code to work on the windows 7 x86 installation where 7z is not in the PATH anymore with revision 2. The fallback code was 64-bit only and needs the null check for ProgramFiles(x86) along with the fall back to ProgramFiles to locate the 7z executable. Change-Id: Ifcf014c3a99685c427a62898e1fa83910a4a7247
Diffstat (limited to 'coin/provisioning/common/helpers.ps1')
-rw-r--r--coin/provisioning/common/helpers.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/coin/provisioning/common/helpers.ps1 b/coin/provisioning/common/helpers.ps1
index 191be290..af7f79ff 100644
--- a/coin/provisioning/common/helpers.ps1
+++ b/coin/provisioning/common/helpers.ps1
@@ -24,7 +24,7 @@ function Extract-7Zip
echo "Extracting '$Source' to '$Destination'..."
if ((Get-Command "7z.exe" -ErrorAction SilentlyContinue) -eq $null) {
- $zipExe = join-path ${env:ProgramFiles(x86)} '7-zip\7z.exe'
+ $zipExe = join-path (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0] '7-zip\7z.exe'
if (-not (test-path $zipExe)) {
$zipExe = join-path ${env:ProgramW6432} '7-zip\7z.exe'
if (-not (test-path $zipExe)) {