From 2684b085cf6113900e3a84cd34ef4b15edb08adc Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 12:50:27 +0100 Subject: [PATCH] Refix --- setupOffice.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupOffice.ps1 b/setupOffice.ps1 index 8b6ba15..1ec7a81 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 = "$driveLetter:\Office\Setup64.exe" + $setupPath = "${driveLetter}:\Office\Setup64.exe" Write-Host "Office setup path: $setupPath" Start-Process -FilePath $setupPath -Wait } else {