Update setupScriptInfo.ps1
This commit is contained in:
@@ -13,14 +13,6 @@ $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.msi"
|
||||
# FileName = "arduino-ide_2.2.1_Windows_64bit.msi"
|
||||
# },
|
||||
@{
|
||||
Url = "https://cdn.discordapp.com/attachments/704760633379389533/1161288504765059172/RobotProg.zip"
|
||||
FileName = "RobotProg.zip"
|
||||
@@ -132,20 +124,16 @@ choco install sublimetext4 -y
|
||||
choco install vlc -y
|
||||
choco install audacity -y
|
||||
|
||||
#Write-Host 'Installing Scratch...'
|
||||
#Start-Process -FilePath $(Join-Path $tmpPath "Scratch%20Setup.exe") -ArgumentList "/allusers /s" -Wait
|
||||
choco install scratch -y --install-arguments="/allusers" --force
|
||||
choco install mblock -y
|
||||
|
||||
Write-Host 'Installing Simulation Domotique...'
|
||||
Expand-Archive -Path (Join-Path $tmpPath "Simulation Domotique.zip") -DestinationPath $env:ProgramFiles -Force
|
||||
$sourceFolderPath = Join-Path $env:ProgramFiles "simulation"
|
||||
$destinationFolderPath = Join-Path $env:ProgramFiles "Simulation Domotique"
|
||||
if (Test-Path -Path $sourceFolderPath -PathType Container) {
|
||||
if (Test-Path -Path $destinationFolderPath -PathType Container) {
|
||||
Remove-Item -Path $destinationFolderPath -Recurse -Force
|
||||
if (Test-Path -Path $(Join-Path $env:ProgramFiles "simulation") -PathType Container) {
|
||||
if (Test-Path -Path $(Join-Path $env:ProgramFiles "Simulation Domotique") -PathType Container) {
|
||||
Remove-Item -Path $(Join-Path $env:ProgramFiles "Simulation Domotique") -Recurse -Force
|
||||
}
|
||||
Rename-Item -Path $sourceFolderPath -NewName "Simulation Domotique"
|
||||
Rename-Item -Path $(Join-Path $env:ProgramFiles "simulation") -NewName "Simulation Domotique"
|
||||
}
|
||||
$targetExePath = "C:\Program Files\Simulation Domotique\simulation.exe"
|
||||
$shortcutPath = (Join-Path $env:PUBLIC "Desktop\Simulation Domotique.lnk")
|
||||
@@ -156,11 +144,7 @@ $shortcut.IconLocation = $targetExePath
|
||||
$shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName
|
||||
$shortcut.Save()
|
||||
|
||||
#Write-Host 'Installing Arduino...'
|
||||
#$msiFilePath = Join-Path -Path $tmpPath -ChildPath "arduino-ide_2.2.1_Windows_64bit.msi"
|
||||
#Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" ALLUSERS=1 /passive" -Wait
|
||||
choco install arduino -y --install-arguments="/allusers" --force
|
||||
|
||||
choco install ganttproject -y
|
||||
$msiFilePath = Join-Path -Path $tmpPath -ChildPath "EV3_Classroom_Windows_1.5.3_Global.msi"
|
||||
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" /qn" -Wait
|
||||
|
||||
Reference in New Issue
Block a user