Add an Application to a Windows PE Image (Standard 7 SP1)
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.
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
Copy the files for the application to the local Windows PE directory. For example, copy the files to
C:\Winpe_x86\Toolsto include the application on the bootable media, or copy the files to the
System32directory for the Windows PE image.
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.
If the application requires temporary storage, allocate memory by using the
dism /Set-ScratchSpaceoption. 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.
Dismount the Windows PE image after you finish modifying it. Consider the following example:
dism /unmount-wim /Mountdir:c:\winpe_x86\mount /commit