Tip

Create a custom GUI for Windows PE

In this column I will demonstrate how to create a GUI front end for Windows Preinstallation Environment (PE), a tool that allows you create custom Windows PE images.

You will need two things: Windows PE (preferably 1.6, which is what I have been developing with) and an OS source. You are better off using a Windows 2003 Server source, integrated with Service Pack 1. That way you can create a custom version of Windows PE that runs in RAM.

The GUI front-end version that I am posting is by no means complete, but it is fully working. I intend to improve upon this product as time goes by, so please drop me an e-mail if you want to contribute some ideas.

At the moment, this version's code is a bit messy, and I would rather people didn't try to adapt the code right now. What I want to do is get it to a stage where all the current bugs (and we know there are going to be some) have been ironed out. Then I will fully document the code and create a general framework for you all to use. I created the program as an HTML application (HTA) with VBSCRIPT as the code language, so it should be easily adaptable in the long run.

Instructions:
Download File: 10740cpe.zip (

    Requires Free Membership to View

http://myitforum.techtarget.com/inc/arts/10740cpe.zip)

  1. Create a folder called C:\windowsPE
  2. Create a subfolder
  3. C:\windowspe\winpe
  4. Copy the windows pe source files into the c:\windowspe\winpe folder
  5. Download the attached zip file and uncompress the files into the C:\windowspe\winpe folder.
  6. Run the current.hta program

The program is very simple and self-explanatory. What you have to bear in mind is the following:
You must specify:
MKIMG configuration (first four options)
Custom background (just pick the normal winpe.bmp if you don't want to change it).

At the moment there is very little error-checking in the program, so if you see a problem, let me know and I will resolve it. I am working error-checking into the code but before I get too carried away, I want to get some feedback from you all. I hope you find this applet helpful.

 


Paul Davey is a technology development consultant for Atkins, a multinational company specializing in engineering. He can be reached at Paul.E.Davey@Atkinsglobal.com.

This was first published in June 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.