This commit is contained in:
2023-11-06 12:48:46 +01:00
parent e7bb83276a
commit 67d2cad627

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 = Join-Path $driveLetter "\Office\Setup64.exe"
$setupPath = Join-Path $driveLetter ":\Office\Setup64.exe"
Write-Host "Office setup path: $setupPath"
Start-Process -FilePath $setupPath -Wait
} else {