This commit is contained in:
2023-11-06 12:50:27 +01:00
parent 48cf688a46
commit 2684b085cf

View File

@@ -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 {