Add an Application to a Windows PE Image (Standard 7 SP1)

7/8/2014

You can add an application to an offline image of Windows Preinstallation Environment (Windows PE) 3.0. For example, if you have diagnostic software or custom tools that are part of your validation process, you can include these tools in your custom Windows PE installation.

To add an application to a Windows PE offline image

  1. Mount the Windows PE image to a local directory by using the DISM tool. Consider the following example:

    dism /Mount-WIM /WimFile:c:\winpe_x86\winpe.wim /index:1 /MountDir:c:\winpe_x86\mount
    
  2. Copy the files for the application to the local Windows PE directory. For example, copy the files to C:\Winpe_x86\Tools to include the application on the bootable media, or copy the files to the System32 directory for the Windows PE image.

  3. To start the application automatically when Windows PE boots, create a startup script by using a Winpeshl.ini file.

    For information about creating a startup script, see Include a Custom Script in a Windows PE Image.

  4. If the application requires temporary storage, allocate memory by using the dism /Set-ScratchSpace option. Valid sizes are 32, 64, 128, 256, or 512 MB.

    You cannot adjust this setting while Windows PE is running.

    Be sure that there is sufficient memory to load and run the custom Windows PE image. If memory is limited, define a page file (Pagefile.sys) to improve memory management. For information about implementing a page file, see Wpeutil Command-Line Options.

  5. Dismount the Windows PE image after you finish modifying it. Consider the following example:

    dism /unmount-wim /Mountdir:c:\winpe_x86\mount /commit
    

See Also

Tasks

Create a Custom Windows PE Image