diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index dc91257..acb0647 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -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"