aboutsummaryrefslogtreecommitdiff
path: root/scripts/getProgramFiles32bit.ps1
blob: 6b71915b19602797d9dd9252b7b7c331640664d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[CmdletBinding()]
param(

)

$out = ${env:PROGRAMFILES(X86)}
if ($out -eq $null)
{
    $out = ${env:PROGRAMFILES}
}

if ($out -eq $null)
{
    throw "Could not find [Program Files 32-bit]"
}

return $out