wiki:windows/installation_image

Version 2 (modified by joergs, 8 years ago) (diff)

--

Windows Installation Images

  • install.wim

Modify by wiki:opsi/dism

Add Language Pack:

Modify a Windows Installation Image

requirements

  • Windows 8 (ISO: sources\install.wim)
  • commands are executed on a Windows 7 system. Should also work on a Windows 8 system (Windows 8 have a few additional option, like /Mount-Image instead of /Mount-Wim)
dism /get-wiminfo /wimfile:sources\install.wim

dism /mount-wim /wimfile:sources\install.wim /index:1 /mountdir:c:\win8\mnt

# add language packs from Language Pack ISO    
dism /image:c:\win8\mnt /scratchdir:c:\tmp /add-package /packagepath:c:\win8\langpacks\en-gb\lp.cab /packagepath:c:\win8\langpacks\en-us\lp.cab /packagepath:c:\win8\langpacks\de-de\lp.cab

dism /image:c:\win8\mnt /Get-Intl

# set default settings to German, but UI to en-US
dism /image:c:\win8\mnt /Set-AllIntl:de-DE
dism /image:c:\win8\mnt /Set-uilang:en-US
(dism /image:c:\win8\mnt /set-syslocale:de-DE)

# show included custom packages
dism /image:c:\win8\mnt /Get-packages

# show features
dism /image:c:\win8\mnt /Get-features

dism /image:c:\win8\mnt /enable-feature  /featurename:telnetclient
# (/featurename:netfx3: doesn't work, because sources are not included)

dism /image:c:\win8\mnt /Get-ProvisionedAppxPackages

dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage /packagename:Microsoft.XboxLIVEGames_1.0.927.0_x64__8wekyb3d8bbwe
dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage  /packagename:microsoft.microsoftskydrive_16.4.4204.712_x64__8wekyb3d8bbwe
dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage  /packagename:Microsoft.BingSports_1.2.0.135_x64__8wekyb3d8bbwe

dism /image:c:\win8\mnt /cleanup-image /StartComponentCleanup

dism /unmount-wim /mountdir:c:\win8\mnt /commit