fixes...
This commit is contained in:
parent
75021ab06f
commit
3bba67fc95
@ -56,7 +56,7 @@ function CopyIso {
|
||||
cp ${driveLetter}:\sources\boot.wim ${wimPath}
|
||||
attrib -R ${wimPath}\boot.wim
|
||||
} else {
|
||||
Write-Host "boot.wim ist bereits vorhanden und wird übersprungen."
|
||||
Write-Host "boot.wim ist bereits vorhanden und wird Übersprungen."
|
||||
}
|
||||
if(-not(Test-Path "${wimPath}\install.wim"))
|
||||
{
|
||||
@ -64,7 +64,7 @@ function CopyIso {
|
||||
cp ${driveLetter}:\sources\install.wim ${wimPath}
|
||||
attrib -R ${wimPath}\install.wim
|
||||
} else {
|
||||
Write-Host "install.wim ist bereits vorhanden und wird übersprungen."
|
||||
Write-Host "install.wim ist bereits vorhanden und wird Übersprungen."
|
||||
}
|
||||
|
||||
Write-Host "Kopieren abgeschlossen."
|
||||
@ -81,9 +81,9 @@ function ConvertEsd {
|
||||
attrib -R ${droot}\install.wim
|
||||
}
|
||||
function ModifyBoot {
|
||||
# füge Treiber in das boot.wim Image ein
|
||||
# füge Treiber in das boot.wim Image ein
|
||||
Write-Host "Mounte die boot.wim..."
|
||||
Write-Host "Füge die Treiber unterhalb von drivers\boot in die boot.wim ein..."
|
||||
Write-Host "Füge die Treiber unterhalb von drivers\boot in die boot.wim ein..."
|
||||
#dism /get-wiminfo /wimfile:${wimPath}\boot.wim
|
||||
DISM /Mount-Wim /WimFile:${wimPath}\boot.wim /Index:2 /MountDir:${droot}\mount\boot
|
||||
DISM /Image:${droot}\mount\boot /Add-Driver /Driver:${droot}\drivers\boot /recurse /forceunsigned
|
||||
@ -91,14 +91,14 @@ function ModifyBoot {
|
||||
DISM /Unmount-Wim /MountDir:${droot}\mount\boot /Commit
|
||||
}
|
||||
function ModifyInstall {
|
||||
# füge Treiber und Updates in das install.wim Image ein
|
||||
Write-Host "Extrahiere Index: ${wimINstallIndex} nach install.wim..."
|
||||
# Füge Treiber und Updates in das install.wim Image ein
|
||||
#Write-Host "Extrahiere Index: ${wimINstallIndex} nach install.wim..."
|
||||
# Zeige die Enthaltenen Windows Editionen
|
||||
#dism /get-wiminfo /wimfile:${addFiles}\Sources\install.wim
|
||||
# Extrahiere Edition Windows 11 Pro (Index: 5)
|
||||
# DISM /Export-Image /SourceImageFile:"${isoPath}\Sources\install.wim" /SourceIndex:${wimInstallIndex} /DestinationImageFile:"${addFiles}\Sources\install.wim"
|
||||
Write-Host "Mounte die install.wim..."
|
||||
Write-Host " Füge die Treiber unterhalb von drivers\install in die install.wim ein..."
|
||||
Write-Host " Füge die Treiber unterhalb von drivers\install in die install.wim ein..."
|
||||
# Mounte Extrahiertes Image
|
||||
DISM /Mount-Wim /WimFile:${addFiles}\Sources\install.wim /Index:${wimInstallIndex} /MountDir:${droot}\mount\install
|
||||
# Arbeite Treiber & Updates ein
|
||||
@ -110,13 +110,13 @@ function ModifyInstall {
|
||||
function CreateISO {
|
||||
Write-Host "Erstelle neues Windows-Image ..."
|
||||
|
||||
Write-Host " lösche Work-Verzeichnis ..."
|
||||
Write-Host " lösche Work-Verzeichnis ..."
|
||||
Remove-Item -Path "${workPath}\*" -Force -Recurse
|
||||
|
||||
Write-Host " kopiere originale ISO Dateien ..."
|
||||
cp ${isoPath}\* ${workPath} -Recurse -Force
|
||||
|
||||
Write-Host " kopiere zusäzliche Dateien ..."
|
||||
Write-Host " kopiere zusäzliche Dateien ..."
|
||||
cp ${addFiles}\* ${workPath} -Recurse -Force
|
||||
|
||||
Write-Host "Erstelle ${isoOutfile} ..."
|
||||
@ -126,14 +126,14 @@ function CreateISO {
|
||||
Start-Process -Filepath "$toolPath\oscdimg.exe" -ArgumentList "-b`"${isoPath}\efi\microsoft\boot\efisys.bin`" -udfver102 -u2 -h -m -o ${workPath} ${isoOutfile}" -Wait -WindowStyle Minimized
|
||||
}
|
||||
function CleanUp {
|
||||
Write-Host "Räume auf..."
|
||||
Write-Host "Räume auf..."
|
||||
# HKLM\SOFTWARE\Microsoft\WIMMount\mounted images\
|
||||
DISM /Cleanup-Wim
|
||||
DISM /Get-MountedImageInfo
|
||||
DISM /Get-MountedWimInfo
|
||||
}
|
||||
function CleanBuild {
|
||||
Write-Host "Räume auf..."
|
||||
Write-Host "Räume auf..."
|
||||
Remove-Item -Path "${workPath}\*" -Force -Recurse
|
||||
Remove-Item -Path "${isoPath}\*" -Force -Recurse
|
||||
Remove-Item -Path "${wimPath}\*.wim" -Force
|
||||
|
Loading…
Reference in New Issue
Block a user