This commit is contained in:
2023-11-13 13:19:50 +01:00
parent 20271a1263
commit 20b07fd063

View File

@@ -41,9 +41,6 @@ function InstallZipSetup {
if ($createSubfolder) {
$expPath = Join-Path $expPath $zipName
}
Write-Host "ExpandPath: $expPath"
Write-Host "ZipPath: $(Join-Path $tmpPath $zip)"
Write-Host "SetupPath: $(Join-Path -Path $tmpPath -ChildPath (Join-Path -Path $zipName -ChildPath $exe))"
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $expPath -Force
Start-Process -FilePath $(Join-Path -Path $tmpPath -ChildPath (Join-Path -Path $zipName -ChildPath $exe)) -ArgumentList "/allusers /s" -Wait
}
@@ -56,7 +53,6 @@ function InstallZipMsi {
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Write-Host "Installing $zipName..."
$msiFilePath = Join-Path $tmpPath $(Join-Path $zipName $msi)
Write-Host "SetupPath: $msiFilePath"
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" /qn" -Wait
}
@@ -137,6 +133,7 @@ function InstallApps {
InstallExe -app "Couvac.exe" -createSubfolder $true
InstallZipMsi -zip "ChemSketch.zip" -msi "script.msi"
InstallZipMsi -zip "Anagene.zip" -msi "Anagene.msi"
CreateShortcut -exe (Join-Path $env:ProgramFiles "Anagene2") -app "anagene2.exe"
}
"Info" {
InstallZip -zip "simulation.zip" -exe "simulation.exe" -app "Simulation Domotique"