Click to Rate and Give Feedback
TechNet
TechNet Library
Windows
Windows Vista
Deployment
 Winpeshl.ini Files
Winpeshl.ini Files

Winpeshl.ini controls whether a customized shell is loaded in Windows PE instead of the default Command Prompt window. To load a customized shell, 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 section and entry.

[LaunchApp]
AppPath = %SYSTEMDRIVE%\myshell.exe
[LaunchApps]
%SYSTEMDRIVE%\mydir\application1.exe, -option1 -option2
application2.exe, -option1 -option2

Set the AppPath entry to the path to your shell application. The path can be either fully qualified, or you can use environment variables, such as %SYSTEMROOT%\System32\Myshell.exe. The AppPath entry does not support command-line options.

Use the [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.

When you exit the Command Prompt window or your customized shell application, Windows PE restarts.

ImportantImportant
Do not edit the value of CmdLine in the HKEY_LOCAL_MACHINE\SYSTEM\Setup registry key of Setupreg.hiv to start your shell application. The value of CmdLine calls Winpeshl.exe, which performs a number of functions, including calling the default Command Prompt window in Windows PE or your customized shell application.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
As of WinPE 2.x      bgroicahn   |   Edit   |   Show History

Currently you can't use [LaunchApp] and [LaunchApps] .

Use either but not both.

Seems to be a bug since docs say nothing of such a restriction.

Tested and proved this 'theory'

NOTE: Many people on many forums came to the same conclusion.

Cannot use more than one option      MrBeatnik   |   Edit   |   Show History
The following does not work for me under PE 3:

[LaunchApps]
%SYSTEMDRIVE%\mydir\application1.exe, -option1 -option2


The winpeshl.log shows only the following command would be launched:
%SYSTEMDRIVE%\mydir\application1.exe -option1
This is therefore only able to launch one option.

To use more than one option with a command, I have had to use quotation marks to process the entire line as one command as if no options. Note there is no comma to separate. It is treated as a full command line:
"%SYSTEMDRIVE%\mydir\application1.exe -option1 -option2"
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker