We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 945b126 commit 63d8204Copy full SHA for 63d8204
scripts/Install-VSCode.ps1
@@ -1,6 +1,6 @@
1
<#PSScriptInfo
2
3
-.VERSION 1.1
+.VERSION 1.2
4
5
.GUID 539e5585-7a02-4dd6-b9a6-5dd288d0a5d0
6
@@ -25,6 +25,8 @@
25
.EXTERNALSCRIPTDEPENDENCIES
26
27
.RELEASENOTES
28
+ 20/03/2018 - fix OS detection to prevent error
29
+ --
30
28/12/2017 - added functionality to support 64-bit versions of VSCode
31
& support for installation of VSCode Insiders Edition.
32
--
@@ -129,7 +131,7 @@ param(
129
131
[switch]$LaunchWhenDone
130
132
)
133
-if (!($IsLinux -or $IsOSX)) {
134
+if (($PSVersionTable.PSVersion.Major -le 5) -or $IsWindows) {
135
switch ($Architecture) {
136
"64-bit" {
137
if ((Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq "64-bit") {
0 commit comments