Published: February 29, 2012
Updated: May 31, 2012
Applies To: Windows 8, Windows Server 2012
Winpeshl.ini controls whether a customized shell is loaded in Windows® Preinstallation Environment (Windows PE) or the default command prompt window.
The CmdLine entry in the HKEY_LOCAL_MACHINE\SYSTEM\Setup registry key calls Winpeshl.exe. The Winpeshl.exe file performs several important functions, including calling the default Command Prompt window in Windows PE and your customized shell application.
|Do not modify the value of the CmdLine entry in the HKEY_LOCAL_MACHINE\SYSTEM\Setup Setupreg.hiv registry key to start your shell application.|
Create a file named Winpeshl.ini and place it in %SYSTEMROOT%\System32 of your customized Windows PE image.
The .ini file must have the following sections and entries. For example:
[LaunchApp] AppPath = %SYSTEMDRIVE%\myshell.exe [LaunchApps] %SYSTEMDRIVE%\mydir\application1.exe,<option>,<option>,<option>
AppPathentry to the path to your shell application. You can use a fully qualified path, or you can use environment variables, such as
AppPathentry does not support command-line options.
[LaunchApps]section to run applications with command-line options. The applications run in the order listed. Separate the name of the application from its options with a comma.
Note You cannot specify a command that is greater than 250 characters.
Exit the command prompt window or your customized shell application
Windows PE restarts.