From 9e14fcc27cdea2968b5e0940677f5836a0ef14a6 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Tue, 10 Oct 2023 14:01:08 +0000 Subject: [PATCH] Update setupScriptInfo.ps1 --- setupScriptInfo.ps1 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index 44440af..a86260a 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -130,7 +130,7 @@ choco install audacity -y choco install scratch -y choco install mblock -y -Expand-Archive -Path "C:\tmp\simulation.zip" -DestinationPath "C:\Program Files\Simulation Domotique" +Expand-Archive -Path "C:\tmp\simulation.zip" -DestinationPath "C:\Program Files\Simulation Domotique" -Force $targetExePath = "C:\Program Files\Simulation Domotique\simulation.exe" $shortcutPath = "C:\Users\Public\Desktop\Simulation Domotique.lnk" $shell = New-Object -ComObject WScript.Shell @@ -141,8 +141,8 @@ $shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName $shortcut.Save() choco install arduino -y choco install ganttproject -y -Start-Process C:\tmp\EV3_Classroom_Windows_1.5.3_Global.msi -ArgumentList "/quiet" -Expand-Archive -Path "C:\tmp\RobotProg.zip" -DestinationPath "C:\Program Files\RobotProg" +Start-Process -FilePath "msiexec.exe" -ArgumentList "/i C:\tmp\EV3_Classroom_Windows_1.5.3_Global.msi /qn" -Wait +Expand-Archive -Path "C:\tmp\RobotProg.zip" -DestinationPath "C:\Program Files\RobotProg" -Force $targetExePath = "C:\Program Files\RobotProg\RobotProg.exe" $shortcutPath = "C:\Users\Public\Desktop\RobotProg.lnk" $shell = New-Object -ComObject WScript.Shell @@ -154,6 +154,21 @@ $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")) +$urlShortcut.TargetPath = "https://office.com/" +$urlShortcut.Save() +$urlShortcut = $wshShell.CreateShortcut((Join-Path $env:PUBLIC "Desktop\Ecole Direct.url")) +$urlShortcut.TargetPath = "https://ecoledirecte.com/" +$urlShortcut.Save() +$urlShortcut = $wshShell.CreateShortcut((Join-Path $env:PUBLIC "Desktop\PIX.url")) +$urlShortcut.TargetPath = "https://pix.fr/" +$urlShortcut.Save() +$urlShortcut = $wshShell.CreateShortcut((Join-Path $env:PUBLIC "Desktop\Framindmap.url")) +$urlShortcut.TargetPath = "https://framindmap.org/" +$urlShortcut.Save() + # Update Windows Install-Module -Name PSWindowsUpdate -Force