1
1
<# PSScriptInfo
2
2
3
- .VERSION 1.3
3
+ .VERSION 1.3.1
4
4
5
5
.GUID 539e5585-7a02-4dd6-b9a6-5dd288d0a5d0
6
6
25
25
.EXTERNALSCRIPTDEPENDENCIES
26
26
27
27
.RELEASENOTES
28
+ 30/08/2019 - added functionality to install the "User Install" variant of Stable Edition.
29
+ --
28
30
07/11/2018 - added support for PowerShell Core and macOS/Linux platforms.
29
31
--
30
32
15/08/2018 - added functionality to install the new "User Install" variant of Insiders Edition.
@@ -132,7 +134,7 @@ param(
132
134
[string ]$Architecture = " 64-bit" ,
133
135
134
136
[parameter ()]
135
- [ValidateSet (" Stable" , " Insider-System" , " Insider-User" )]
137
+ [ValidateSet (" Stable" , " Stable-User " , " Insider-System" , " Insider-User" )]
136
138
[string ]$BuildEdition = " Stable" ,
137
139
138
140
[Parameter ()]
@@ -199,7 +201,7 @@ function Get-CodePlatformInformation {
199
201
$Bitness ,
200
202
201
203
[Parameter (Mandatory = $true )]
202
- [ValidateSet (' Stable' , ' Insider-System' , ' Insider-User' )]
204
+ [ValidateSet (' Stable' , ' Stable-User ' , ' Insider-System' , ' Insider-User' )]
203
205
[string ]
204
206
$BuildEdition
205
207
)
@@ -231,6 +233,11 @@ function Get-CodePlatformInformation {
231
233
break
232
234
}
233
235
236
+ ' Stable-User' {
237
+ $appName = " Visual Studio Code ($ ( $Architecture ) - User)"
238
+ break
239
+ }
240
+
234
241
' Insider-System' {
235
242
$appName = " Visual Studio Code - Insiders Edition ($Bitness )"
236
243
break
@@ -321,6 +328,9 @@ function Get-CodePlatformInformation {
321
328
' Stable' {
322
329
$exePath = " $installBase \Microsoft VS Code\bin\code.cmd"
323
330
}
331
+ ' Stable-User' {
332
+ $exePath = " ${env: LocalAppData} \Programs\Microsoft VS Code\bin\code.cmd"
333
+ }
324
334
325
335
' Insider-System' {
326
336
$exePath = " $installBase \Microsoft VS Code Insiders\bin\code-insiders.cmd"
@@ -339,6 +349,12 @@ function Get-CodePlatformInformation {
339
349
break
340
350
}
341
351
352
+ ' Stable-User' {
353
+ $channel = ' stable'
354
+ $platform += ' -user'
355
+ break
356
+ }
357
+
342
358
' Insider-System' {
343
359
$channel = ' insider'
344
360
break
0 commit comments