Jump to content

Reducing WinPE 2.0 footprint!


Rakesh Baldha

Recommended Posts


What have you added/removed? What steps did you take in creating your PE2 environment? Need some more details. Did you do an export? Did you prep the image?

What are you using PE2 for? so we know what needs to be left behind for the functionality you require.

Link to comment
Share on other sites

What have you added/removed? What steps did you take in creating your PE2 environment? Need some more details. Did you do an export? Did you prep the image?

What are you using PE2 for? so we know what needs to be left behind for the functionality you require.

I did following steps

>copype.cmd x86 %PEDIR%

>imagex /mountrw %PEDIR%\ISO\sources\boot.wim 1 %PEDIR%\mount

// removed font foleder from /windows/font

// removed unused exe,dll from /windows/system32/

// added some drivers, by peimg /inf

// added 50 mb of binaries for our customization

>peimg /prep %PEDIR%\WINDOWS

>imagex /unmount %MOUNTDIR% /commit

>imagex /export %PEDIR%\ISO\sources\boot.wim 1 %PEDIR%\ISO\sources\boot.wim %1 /compress max

>oscdimg.exe -b%PEDIR%\ISO\boot\etfsboot.com -lWINPE20 -n -o -m %PEDIR%\ISO %PEDIR%\DefWinPEISO.iso

I am trying this on default ISO image now without adding my drivers,

yeah it optimize iso image size but It won't affect in boot time, boot time remain same.

but I want to optimize further in time. also in size if you have some more suggestions.

--> Problem I face is:

When I copy Waik package on my local machine then I tried above experiement on it,

but when I export this wim file It reduced size, when I used this reduced wim file in oscdimg, my iso size is reduced.

but when I again mount exported wim file it has all the componant which I have removed.

still it has same boot time, no change in boot time, what can I do for optimize time?

thanks

Edited by Rakesh Baldha
Link to comment
Share on other sites

// removed unused exe,dll from /windows/system32/

Hi Rakesh what were you able to remove.

I am in the process of trying stripping out dll's and exe's but having problems reducing the size to what i like it to be. Basically i trying to get the winpe with network running on a pc with 256mb. I am pxe boot and loading the Winpe image into memory so space is really important.

Link to comment
Share on other sites

// removed unused exe,dll from /windows/system32/

Hi Rakesh what were you able to remove.

I am in the process of trying stripping out dll's and exe's but having problems reducing the size to what i like it to be. Basically i trying to get the winpe with network running on a pc with 256mb. I am pxe boot and loading the Winpe image into memory so space is really important.

I have attached removed exe list.

~rakesh

removedexe.txt

Link to comment
Share on other sites

  • 2 weeks later...

I have a script which compiles my PE. (as im sure most do).

Here is the list of removed files. Add suggestions would be helpful, as the slimmer the better.

Has anyone had any success getting a DOS emulator (such as DOSbox) to work on PE? I want to run a 16-bit program through PE, with no success.

rd /s /q %winpe%\mount\Windows\System32\ar-SA

rd /s /q %winpe%\mount\Windows\System32\bg-BG

rd /s /q %winpe%\mount\Windows\System32\cs-CZ

rd /s /q %winpe%\mount\Windows\System32\da-DK

rd /s /q %winpe%\mount\Windows\System32\de-DE

rd /s /q %winpe%\mount\Windows\System32\el-GR

rd /s /q %winpe%\mount\Windows\System32\es-ES

rd /s /q %winpe%\mount\Windows\System32\et-EE

rd /s /q %winpe%\mount\Windows\System32\fi-FI

rd /s /q %winpe%\mount\Windows\System32\fr-FR

rd /s /q %winpe%\mount\Windows\System32\he-IL

rd /s /q %winpe%\mount\Windows\System32\hr-HR

rd /s /q %winpe%\mount\Windows\System32\hu-HU

rd /s /q %winpe%\mount\Windows\System32\it-IT

rd /s /q %winpe%\mount\Windows\System32\ja-JP

rd /s /q %winpe%\mount\Windows\System32\ko-KR

rd /s /q %winpe%\mount\Windows\System32\lt-LT

rd /s /q %winpe%\mount\Windows\System32\lv-LV

rd /s /q %winpe%\mount\Windows\System32\nb-NO

rd /s /q %winpe%\mount\Windows\System32\nl-NL

rd /s /q %winpe%\mount\Windows\System32\pl-PL

rd /s /q %winpe%\mount\Windows\System32\pt-BR

rd /s /q %winpe%\mount\Windows\System32\pt-PT

rd /s /q %winpe%\mount\Windows\System32\ro-RO

rd /s /q %winpe%\mount\Windows\System32\ru-RU

rd /s /q %winpe%\mount\Windows\System32\sk-SK

rd /s /q %winpe%\mount\Windows\System32\sl-SI

rd /s /q %winpe%\mount\Windows\System32\sv-SE

rd /s /q %winpe%\mount\Windows\System32\th-TH

rd /s /q %winpe%\mount\Windows\System32\tr-TR

rd /s /q %winpe%\mount\Windows\System32\uk-UA

rd /s /q %winpe%\mount\Windows\System32\zh-CN

rd /s /q %winpe%\mount\Windows\System32\zh-TW

rd /s /q %winpe%\mount\Windows\System32\zh-HK

rd /s /q %winpe%\mount\Windows\System32\sr-Latn-CS

rd /s /q %winpe%\ISO\boot\fonts

rd /s /q %winpe%\ISO\EFI\microsoft\boot\fonts

del /s /q %winpe%\mount\Windows\System32\diskraid.exe

del /s /q %winpe%\mount\Windows\System32\dpapimig.exe

del /s /q %winpe%\mount\Windows\System32\ftp.exe

del /s /q %winpe%\mount\Windows\System32\ntprint.exe

del /s /q %winpe%\mount\Windows\System32\ntprint.dll

del /s /q %winpe%\mount\Windows\System32\print.exe

del /s /q %winpe%\mount\Windows\System32\printui.dll

del /s /q %winpe%\mount\Windows\System32\robocopy.exe

del /s /q %winpe%\mount\Windows\System32\taskmgr.exe

del /s /q %winpe%\mount\Windows\System32\wbengine.exe

del /s /q %winpe%\mount\Windows\System32\wbadmin.exe

del /s /q %winpe%\mount\Windows\System32\wdscapture.exe

del /s /q %winpe%\mount\Windows\System32\wdscapture.inf

Link to comment
Share on other sites

  • 1 month later...

This a bit off topic if we take into consideration the original request for this topic, but there is script for liveXP that adds 16 bit support to a XP PE (NT5) based winbuilder project.

Since it is also using winbuilder perhaps this can be adapted to work with VistaPE/WinPE 2.0 or at the very least give you pointers on what you need to try in order to get 16 bit support under NT6. (don't know for sure if much has changed across NT versions)

You find it here: http://livexp.boot-land.net/LiveXP/Apps/Sy...dos16bit.Script

:)

Link to comment
Share on other sites

This a bit off topic if we take into consideration the original request for this topic, but there is script for liveXP that adds 16 bit support to a XP PE (NT5) based winbuilder project.

Since it is also using winbuilder perhaps this can be adapted to work with VistaPE/WinPE 2.0 or at the very least give you pointers on what you need to try in order to get 16 bit support under NT6. (don't know for sure if much has changed across NT versions)

You find it here: http://livexp.boot-land.net/LiveXP/Apps/Sy...dos16bit.Script

:)

How do I run that script? Where do I run it? I've been looking for this functionality for a while!

Link to comment
Share on other sites

Ok, I'll explain everything from the start so that you can understand in detail how to get this done, but do post your doubts along the way and I'll try to help getting them sorted out.

Here's a quick check list for trying the script in action inside winbuilder:

  • Get the latest WinBuilder: http://winbuilder.net/download.php?list.3
  • Run the executable on a empty folder (such as c:\winbuilder)
  • From the internal download center get the latest projects from the web (vistape, livexp, etc)

If you done the above steps then you should be viewing inside winbuilder a project called liveXP, get inside the folder Apps\System on the project treeview inside wb and ensure that the 16bit support script is enabled.

Click on play (big blue button) and select a source to your Windows XP PRO SP2 (recommended) files.

View the results and burn the ISO to a CD or DVD and after booting the image you can try running you 16 bit apps on disk.

----------------

After you get some feeling of how things work - time to move onto VistaPE based on WinPE 2.x and also build a boot disk based on this project (instructions are included inside the project)

After trying this project for the first time with success - it should then be time to port the same capability to VistaPE (don't think anyone ever tried it before) - wb has an internal script code editor that you can use to peek at the code and give a try to adapt it to work with this WinPE project.

Much of the support for VistaPE is also given on the respective forum, look here for help: http://www.boot-land.net/forums/VistaPE-f51.html

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...