From 47531e24c48a1c90cef81e51cf8c184b7c34aeac Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Tue, 17 Oct 2023 15:01:32 +0000 Subject: [PATCH] Update SetupScriptLabo.ps1 --- SetupScriptLabo.ps1 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/SetupScriptLabo.ps1 b/SetupScriptLabo.ps1 index be49b4b..53eb3d4 100644 --- a/SetupScriptLabo.ps1 +++ b/SetupScriptLabo.ps1 @@ -182,6 +182,16 @@ function InstallExe { createShortcut -exe $appFilePath -app $appName } +function InstallZipSetup { + param ( + [string] $zip + [string] $exe + ) + $zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip) + Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force + Start-Process -FilePath $(Join-Path $tmpPath $zipName $exe) -ArgumentList "/allusers /s" -Wait +} + function InstallZip { param ( [string] $zip @@ -223,7 +233,6 @@ choco install audacity -y choco install avogadro -y choco install arduino -y --install-arguments="/allusers" --force -# Regressi InstallExeSetup -app "winstars_installer.exe" InstallZip -zip "Tectoglob3D-win32-ia32.zip" -exe "Tectoglob3D.exe" -app "Tectoglob3D" InstallExe -app "Sismolog.exe" @@ -231,6 +240,12 @@ InstallZip -zip "Tectoglob_11_complet.zip" -exe "TectoGlob.exe" -app "TectoGlob" InstallExe -app "Respipoisson.exe" InstallMsi -app "regressi-mpeg-setup.msi" InstallZip -zip "regavi.zip" -exe "regavi.exe" -app "Regavi" +InstallExe -app "Radiochr.exe" +InstallZip -zip "Phylogene-Lycee-2021.zip" -exe "Programmes\Phylo.exe" -app "Phylogene" +InstallZip -zip "paleoterre_el32.zip" -exe "paleoTerre.exe" -app "PaleoTerre" +InstallExeSetup -app "Eduanat2_Setup_2.0.0.exe" +InstallZip -zip "couvac_exe.zip" -exe "couvac.exe" -app "Couvac" +InstallZipSetup -zip "ACDLabs202311_ChemSketch_FInstall.zip" -exe "setup.exe" # Update Windows