Better automatisation
This commit is contained in:
@@ -9,10 +9,15 @@ function InstallMsi {
|
||||
|
||||
function InstallExeSetup {
|
||||
param (
|
||||
[string] $app
|
||||
[string] $app,
|
||||
[string] $skipIf
|
||||
)
|
||||
Write-Host "Installing $app..."
|
||||
Start-Process -FilePath $(Join-Path $tmpPath $app) -ArgumentList "/allusers /s" -Wait
|
||||
if (-not (Test-Path -Path $skipIf -PathType Container)) {
|
||||
Start-Process -FilePath $(Join-Path $tmpPath $app) -ArgumentList "/allusers /s" -Wait
|
||||
} else {
|
||||
Write-Host "$app already installed."
|
||||
}
|
||||
}
|
||||
|
||||
function InstallExe {
|
||||
@@ -119,7 +124,7 @@ function InstallApps {
|
||||
|
||||
switch ($Type) {
|
||||
"Labo" {
|
||||
InstallExeSetup -app "winstars_installer.exe"
|
||||
InstallExeSetup -app "winstars_installer.exe" -skipIf "C:\Program Files\WinStars3"
|
||||
InstallZip -zip "Tectoglob3D-win32-ia32.zip" -exe "Tectoglob3D.exe" -app "Tectoglob3D"
|
||||
InstallExe -app "Sismolog.exe"
|
||||
InstallZip -zip "Tectoglob_11_complet.zip" -exe "TectoGlob.exe" -app "TectoGlob"
|
||||
@@ -129,7 +134,7 @@ function InstallApps {
|
||||
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"
|
||||
InstallExeSetup -app "Eduanat2_Setup_2.0.0.exe" -skipIf "C:\Program Files (x86)\Eduanat2"
|
||||
InstallExe -app "Couvac.exe" -createSubfolder $true
|
||||
InstallZipMsi -zip "ChemSketch.zip" -msi "script.msi"
|
||||
InstallZipMsi -zip "Anagene.zip" -msi "Anagene.msi"
|
||||
|
||||
Reference in New Issue
Block a user