Adding Anagene Install

This commit is contained in:
2023-11-13 08:53:43 +01:00
parent 1978e12b80
commit 8e9950c532
3 changed files with 17 additions and 0 deletions

View File

@@ -7,6 +7,18 @@ function InstallMsi {
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" /qn" -Wait
}
function InstallZipMsi {
param (
[string] $zip,
[string] $msi
)
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Write-Host "Installing $zipName..."
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath (Join-Path $tmpPath $zipName) -Force
$msiFilePath = Join-Path -Path $tmpPath -ChildPath $msi
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" /qn" -Wait
}
function InstallExeSetup {
param (
[string] $app
@@ -102,6 +114,7 @@ function InstallApps {
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"
InstallZipMsi -zip "Anagene.zip" -msi "Anagène 2.msi"
}
"Info" {
InstallZip -zip "simulation.zip" -exe "simulation.exe" -app "Simulation Domotique"