This commit is contained in:
2023-11-13 12:14:07 +01:00
parent f1066063cd
commit 2e36f331f6

View File

@@ -37,6 +37,9 @@ function InstallZipSetup {
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Write-Host "Installing $zipName..."
$expPath = Join-Path $tmpPath $zipName
Write-Host "ExePath: $expPath"
Write-Host "ZipPath: $(Join-Path $tmpPath $zip)"
Write-Host "SetupPath: $(Join-Path -Path $expPath -ChildPath (Join-Path -Path $zipName -ChildPath $exe))"
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $expPath -Force
Start-Process -FilePath $(Join-Path -Path $expPath -ChildPath (Join-Path -Path $zipName -ChildPath $exe)) -ArgumentList "/allusers /s" -Wait
}
@@ -106,7 +109,7 @@ function InstallApps {
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" -createSubfolder $true
InstallZip -zip "regavi.zip" -exe "regavi.exe" -app "regavi" -createSubfolder $true
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"