Wednesday, March 23, 2016

Install Windows 10 using a previous version of Windows PE


To install some features of Windows 10, such as Compact OS, you'll need the Windows 10 version of DISM.
You can include the latest version DISM in your Windows Preinstallation Environment (WinPE) image, or run it from a separate location, such as on a removable drive. If you include it with WinPE, it will add roughly 4MB to the size of your DISM image.
You'll need to install and configure the drivers needed for DISM, including the wimmount.sys and wofadk.sys drivers, each time you boot WinPE.
Dn898515.wedge(en-us,VS.85).gifTo add DISM into your Windows PE image
  1. On your technician PC, install the Windows ADK for Windows 10.
  2. Mount WinPE. For WinPE 3.x, mount the file: \sources\winpe.wim. For WinPE 4.x and 5.x, mount the file: \sources\boot.wim.
    md "C:\WinPE_amd64\mount"
    
    Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
    
  3. Copy the DISM folder from the Windows ADK into a new folder in the mounted WinPE image.
    md C:\WinPE_amd64\mount\DISM
    
    robocopy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM" C:\WinPE_amd64\mount\DISM
    
    Important   Don't overwrite the existing DISM files from the system32 folder in the WinPE image. Instead, create a new folder on the host computer to copy the Windows ADK files into.
     
  4. Unmount WinPE.
    Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
    
  5. Create WinPE bootable media, or replace the WinPE image file on your existing removable media.
    MakeWinPEMedia /UFD C:\WinPE_amd64 F:
    
Dn898515.wedge(en-us,VS.85).gifInstall and use DISM from WinPE
  1. Boot your destination device to WinPE.
  2. Install and configure DISM's required drivers by using either WimMountAdkSetupAmd64.exe /Install or WimMountAdkSetupX86.exe /Install.
    X:\DISM\WimMountAdkSetupAmd64.exe /Install /q
    
    For the default (RAMDisk) version of WinPE, you'll need to run this command each time you boot WinPE. To learn how to run this command automatically when WinPE boots, see Wpeinit and Startnet.cmd: Using WinPE Startup Scripts.
  3. Verify that the Windows 10 version of DISM is installed.
    X:\DISM\Dism.exe /?
    
    The output shows the build number, for example:
    Deployment Image Servicing and Management tool
    Version: 10.0.10122.0
    
  4. Run DISM commands from the new folder.
    X:\DISM\Dism.exe /Apply-Image /ImageFile:install.wim /Index:1 /ApplyDir:W: /Compact
    

No comments:

Post a Comment