We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dbd993 commit b1d4eb0Copy full SHA for b1d4eb0
functions/private/Invoke-WinUtilISO.ps1
@@ -49,8 +49,13 @@ function Invoke-WinUtilISOMountAndVerify {
49
Set-WinUtilProgressBar -Label "Mounting ISO..." -Percent 10
50
51
try {
52
- $diskImage = Mount-DiskImage -ImagePath $isoPath -PassThru -ErrorAction Stop
53
- $driveLetter = ($diskImage | Get-Volume).DriveLetter + ":"
+ Mount-DiskImage -ImagePath $isoPath -ErrorAction Stop | Out-Null
+
54
+ do {
55
+ Start-Sleep -Milliseconds 500
56
+ } until ((Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter)
57
58
+ $driveLetter = (Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter + ":"
59
Write-Win11ISOLog "Mounted at drive $driveLetter"
60
61
Set-WinUtilProgressBar -Label "Verifying ISO contents..." -Percent 30
0 commit comments