From 8c9c86545f92ca4c1f102b56777e230061c30aaa Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 16 Oct 2023 07:49:08 +0000 Subject: [PATCH] Update setupScriptInfo.ps1 --- setupScriptInfo.ps1 | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index 65a98f8..43ae8c5 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -13,6 +13,14 @@ $filesToDownload = @( Url = "https://cdn.discordapp.com/attachments/704760633379389533/1161288505390026772/simulation.zip" FileName = "Simulation Domotique.zip" }, + @{ + Url = "https://downloads.scratch.mit.edu/desktop/Scratch%20Setup.exe" + FileName = "Scratch%20Setup.exe" + }, + @{ + Url = "https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.exe" + FileName = "arduino-ide_2.2.1_Windows_64bit.exe" + }, @{ Url = "https://cdn.discordapp.com/attachments/704760633379389533/1161288504765059172/RobotProg.zip" FileName = "RobotProg.zip" @@ -124,16 +132,7 @@ choco install sublimetext4 -y choco install vlc -y choco install audacity -y -$ErrorActionPreference = 'Stop'; -$packageArgs = @{ - packageName = 'scratch' - fileType = 'EXE' - Url = 'https://downloads.scratch.mit.edu/desktop/Scratch%20Setup.exe' - checksum = 'dfca2f1a842aea69a2b0a22ca66fa7852f86259e3da4f576f8ae7fa16f1e9134' - checksumType = 'sha256' - validExitCodes= @(0) -} -Install-ChocolateyPackage @packageArgs +Start-Process -FilePath $(Join-Path $tmpPath "Scratch%20Setup.exe") choco install mblock -y Expand-Archive -Path (Join-Path $tmpPath "Simulation Domotique.zip") -DestinationPath $env:ProgramFiles -Force @@ -154,16 +153,7 @@ $shortcut.IconLocation = $targetExePath $shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName $shortcut.Save() -$packageArgs = @{ - packageName = 'arduino' - fileType = 'EXE' - Url = 'https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.exe' - checksum = 'a2e29f8bcfb0ee1292c035ee2eea54e4c3632e26ff9c5c5f9dfacd7869ee3fc4' - checksumType = 'sha256' - softwareName = 'Arduino*' - validExitCodes= @(0) -} -Install-ChocolateyPackage @packageArgs +Start-Process -FilePath $(Join-Path $tmpPath "arduino-ide_2.2.1_Windows_64bit.exe") choco install ganttproject -y $msiFilePath = Join-Path -Path $tmpPath -ChildPath "EV3_Classroom_Windows_1.5.3_Global.msi"