Update setupScriptInfo.ps1

This commit is contained in:
2023-10-16 08:37:46 +00:00
parent 5c32390ee1
commit 81d70d26c0

View File

@@ -18,7 +18,7 @@ $filesToDownload = @(
FileName = "Scratch%20Setup.exe"
},
@{
Url = "https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.exe"
Url = "https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Windows_64bit.msi"
FileName = "arduino-ide_2.2.1_Windows_64bit.exe"
},
@{
@@ -155,7 +155,8 @@ $shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName
$shortcut.Save()
Write-Host 'Installing Arduino...'
Start-Process -FilePath $(Join-Path $tmpPath "arduino-ide_2.2.1_Windows_64bit.exe")
$msiFilePath = Join-Path -Path $tmpPath -ChildPath "arduino-ide_2.2.1_Windows_64bit.msi"
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" ALLUSERS=1 /qn" -Wait
choco install ganttproject -y
$msiFilePath = Join-Path -Path $tmpPath -ChildPath "EV3_Classroom_Windows_1.5.3_Global.msi"