aboutsummaryrefslogtreecommitdiff
path: root/scripts/getProgramFiles32bit.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-14 16:53:29 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-14 16:53:29 -0800
commit444f28dd24f4bffa3e0ee450e8fbbe30340086b4 (patch)
treef7bd2b893b0d1f000901bcca7198fd59ca8f4dd1 /scripts/getProgramFiles32bit.ps1
parenta7c5063d4d08c44c100eb62726ef31a95c1e5121 (diff)
downloadvcpkg-444f28dd24f4bffa3e0ee450e8fbbe30340086b4.tar.gz
vcpkg-444f28dd24f4bffa3e0ee450e8fbbe30340086b4.zip
Add functions to find Program Files folders on the powershell side
Diffstat (limited to 'scripts/getProgramFiles32bit.ps1')
-rw-r--r--scripts/getProgramFiles32bit.ps111
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/getProgramFiles32bit.ps1 b/scripts/getProgramFiles32bit.ps1
new file mode 100644
index 000000000..fd7167191
--- /dev/null
+++ b/scripts/getProgramFiles32bit.ps1
@@ -0,0 +1,11 @@
+[CmdletBinding()]
+param(
+
+)
+
+if (Test-Path env:PROGRAMFILES`(X86`))
+{
+ return ${env:PROGRAMFILES(X86)}
+}
+
+return ${env:PROGRAMFILES} \ No newline at end of file