diff options
| author | Thomas Fussell <thomas.fussell@gmail.com> | 2017-03-12 17:44:06 -0400 |
|---|---|---|
| committer | Thomas Fussell <thomas.fussell@gmail.com> | 2017-03-12 17:44:06 -0400 |
| commit | 2f42035ab43dd50cd863b51944aa099a99ae60f0 (patch) | |
| tree | 4b6cfd43955e946721c58028fd8564c861d5c331 /scripts/getProgramFiles32bit.ps1 | |
| parent | e02e85626f3206feda86a6f5757009005e0cfe3e (diff) | |
| parent | 1c9873a0daf625f67474aaf3e163c592c27ecb65 (diff) | |
| download | vcpkg-2f42035ab43dd50cd863b51944aa099a99ae60f0.tar.gz vcpkg-2f42035ab43dd50cd863b51944aa099a99ae60f0.zip | |
Merge branch 'master' of git://github.com/Microsoft/vcpkg
Diffstat (limited to 'scripts/getProgramFiles32bit.ps1')
| -rw-r--r-- | scripts/getProgramFiles32bit.ps1 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/getProgramFiles32bit.ps1 b/scripts/getProgramFiles32bit.ps1 new file mode 100644 index 000000000..6b71915b1 --- /dev/null +++ b/scripts/getProgramFiles32bit.ps1 @@ -0,0 +1,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
\ No newline at end of file |
