Remove temporary WinPE WIM file
This commit is contained in:
parent
0ef9412995
commit
3621914312
1 changed files with 1 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ if ($MyInvocation.InvocationName -ne ".") {
|
|||
Write-Host "Recompressing image..."
|
||||
Move-Item "$TargetDir\media\sources\boot.wim" "$TargetDir\media\sources\boot-edited.wim"
|
||||
Export-WindowsImage -DestinationImagePath "$TargetDir\media\sources\boot.wim" -SourceImagePath "$TargetDir\media\sources\boot-edited.wim" -SourceIndex 1 -CompressionType Max
|
||||
Remove-Item "$TargetDir\media\sources\boot-edited.wim" -Force
|
||||
|
||||
# Create ISO
|
||||
New-Item -Type Directory "$SetupDir\OUT_PE" 2>&1 | Out-Null
|
||||
|
|
|
|||
Loading…
Reference in a new issue