From af3a84d6331176f75770fbe51788c1b4a31c2c83 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Tue, 10 Oct 2023 14:02:52 +0000 Subject: [PATCH] Update setupScriptInfo.ps1 --- setupScriptInfo.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index a86260a..5913a63 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -2,10 +2,10 @@ $tmpPath = "C:\tmp" if (-not (Test-Path -Path $tmpPath -PathType Container)) { New-Item -Path $tmpPath -ItemType Directory + Invoke-WebRequest -URI "https://education.lego.com/_/downloads/EV3_Classroom_Windows_1.5.3_Global.msi" -OutFile "C:\tmp\EV3_Classroom_Windows_1.5.3_Global.msi" + Invoke-WebRequest -URI "https://cdn.discordapp.com/attachments/704760633379389533/1161288505390026772/simulation.zip" -OutFile "C:\tmp\simulation.zip" + Invoke-WebRequest -URI "https://cdn.discordapp.com/attachments/704760633379389533/1161288504765059172/RobotProg.zip" -OutFile "C:\tmp\RobotProg.zip" } -Invoke-WebRequest -URI "https://education.lego.com/_/downloads/EV3_Classroom_Windows_1.5.3_Global.msi" -OutFile "C:\tmp\EV3_Classroom_Windows_1.5.3_Global.msi" -Invoke-WebRequest -URI "https://cdn.discordapp.com/attachments/704760633379389533/1161288505390026772/simulation.zip" -OutFile "C:\tmp\simulation.zip" -Invoke-WebRequest -URI "https://cdn.discordapp.com/attachments/704760633379389533/1161288504765059172/RobotProg.zip" -OutFile "C:\tmp\RobotProg.zip" Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) @@ -152,8 +152,6 @@ $shortcut.IconLocation = $targetExePath $shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName $shortcut.Save() -Remove-Item -Path "C:\tmp\" -Recurse -Force - # URL shortcut $wshShell = New-Object -ComObject "WScript.Shell" $urlShortcut = $wshShell.CreateShortcut((Join-Path $env:PUBLIC "Desktop\Office 365.url"))