This commit is contained in:
2023-11-13 13:12:38 +01:00
parent afabbf6c12
commit 7ef059b550

View File

@@ -55,10 +55,9 @@ function InstallZipMsi {
)
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Write-Host "Installing $zipName..."
$expPath = Join-Path $tmpPath
$msiFilePath = Join-Path $expPath $(Join-Path $zipName $msi)
$msiFilePath = Join-Path $tmpPath $(Join-Path $zipName $msi)
Write-Host "SetupPath: $msiFilePath"
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $expPath -Force
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force
InstallMsi -app $msiFilePath
}