We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91b9c5f commit ff50f74Copy full SHA for ff50f74
scripts/Install-VSCode.ps1
@@ -137,15 +137,21 @@ if (!($IsLinux -or $IsOSX)) {
137
$bitVersion = "win32-x64"
138
}
139
else {
140
- $codePath = ${env:ProgramFiles(x86)}
+ $codePath = $env:ProgramFiles
141
$bitVersion = "win32"
142
$Architecture = "32-bit"
143
144
break;
145
146
"32-bit" {
147
148
- $bitVersion = "win32"
+ if ((Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq "32-bit"){
149
+ $bitVersion = "win32"
150
+ }
151
+ else {
152
+ $codePath = ${env:ProgramFiles(x86)}
153
154
155
156
157
0 commit comments