From 48cf688a4685d1cfada75e8db24eb3ca504a2ee6 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 12:49:46 +0100 Subject: [PATCH] Fix --- setupOffice.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupOffice.ps1 b/setupOffice.ps1 index 3b01ce0..8b6ba15 100644 --- a/setupOffice.ps1 +++ b/setupOffice.ps1 @@ -31,7 +31,7 @@ function InstallOffice { if (Test-Path -Path $imagePath -PathType Leaf) { $mountResult = Mount-DiskImage -ImagePath $imagePath -PassThru $driveLetter = ($mountResult | Get-Volume).DriveLetter - $setupPath = Join-Path $driveLetter ":\Office\Setup64.exe" + $setupPath = "$driveLetter:\Office\Setup64.exe" Write-Host "Office setup path: $setupPath" Start-Process -FilePath $setupPath -Wait } else {