Skip to content

Commit

Permalink
Update setup.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
starchyunderscore authored Mar 11, 2023
1 parent 5a2b7a5 commit e16dd54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ if($InstallVSC -eq 0) {
$remoteFile = 'https://go.microsoft.com/fwlink/?Linkid=850641';
$downloadFile = $env:Temp+'\vscode.zip';
$vscodePath = $env:LOCALAPPDATA+"\VsCode";

# (New-Object Net.WebClient).DownloadFile($remoteFile, $downloadFile);

Start-BitsTransfer -source "$remoteFile" -destination "$downloadFile"

Expand All @@ -331,7 +329,8 @@ if($InstallVSC -eq 0) {
$Shortcut = $WshShell.CreateShortcut("$env:AppData\Microsoft\Windows\Start Menu\Programs\Visual Studio Code.lnk")
$Shortcut.TargetPath = "$env:LOCALAPPDATA\VsCode\Code.exe"
$Shortcut.Save()

Write-Host ""
Write-Host "Visual Studio Code installed" -ForegroundColor Green
}
# end script
Write-Host ""
Expand Down

0 comments on commit e16dd54

Please sign in to comment.