From afabbf6c12fd33a5b834db19e571f4702b46aaab Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 13 Nov 2023 13:08:53 +0100 Subject: [PATCH] Fix --- setupApps.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setupApps.ps1 b/setupApps.ps1 index bfbffe1..255f96e 100644 --- a/setupApps.ps1 +++ b/setupApps.ps1 @@ -56,11 +56,10 @@ function InstallZipMsi { $zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip) Write-Host "Installing $zipName..." $expPath = Join-Path $tmpPath - Write-Host "ExpandPath: $expPath" - Write-Host "ZipPath: $(Join-Path $tmpPath $zip)" - Write-Host "SetupPath: $(Join-Path -Path $expPath -ChildPath (Join-Path -Path $zipName -ChildPath $msi))" + $msiFilePath = Join-Path $expPath $(Join-Path $zipName $msi) + Write-Host "SetupPath: $msiFilePath" Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $expPath -Force - InstallMsi -app $(Join-Path -Path $expPath -ChildPath (Join-Path -Path $zipName -ChildPath $msi)) + InstallMsi -app $msiFilePath } function InstallZip {