If you'd like to create a Windows-based operating system, this article will tell you all about doing just that. You need to know at least one programming language, such as C++. Or if you don't know any, just skip the coding part in this article. You also need to know file manipulation of system files, this will not be as easy though. If you concentrate on all the steps, you will get there with your own operating system.
Make sure you have all the requirements ready, you will need them.
The requirements are listed under Things You’ll Need below.
Decide what CPU the OS is compatible with.
For example: x86 (32-bit), x64 (64-bit). Make sure your computer that you will target matches the CPU type you will specify later. Write down what processor architecture, you need to remember that.
Decide what you want to use as storage (CD, DVD, USB, HDD).
- Note: If you choose a CD or DVD, your image file of your system must be smaller than 1G. We will talk about the image file later.
Download the Windows 7 AIK from this link:
Install it and then turn off your User Account Control (UAC) in the control panel.
This allows us to do anything to the system files stored in the image file we are going to change.
Find and open the Deployment Tools Command Prompt in the start menu.
Set up the image file.
The image file is 120MB. If you install it on a CD as a live filesystem, then you are not able to save anything. Type the following command in the Deployment Tools Command Prompt: copype _Your_Chosen_Processor_Architecture_ C:PathWhereYouWantToStoreTheImageFile. Example: copype x64 X:DataMyWindowsOS
Mount the image.
So you have created our image (if it has been done right) and now you need to mount it so that you can change its contents. Type the following: imagex /mountrw PathOfImage 1 PathOfImageFolder/mount. Example: imagex /mountrw X:MWOSwinpe.wim 1 X:MWOSmount.
Add anything you want to it, the mount point is your specified mount point.
When you are done with modifying its contents, type imagex /unmount MountPointPath /commit. Example: imagex /unmount X:MWOSmount /commit
When that is done, type the following command to create a CD image.
Type: oscdimg -n -bPathOfImageFolderetfsboot.com PathOfImageFolderISO PathIfImageFolderwinpe_x86.iso
Test your image in virtualbox, vmware or even for real.
- You do not need to edit the source code for all the objects we are going to use, you just need a tiny tool called ¨Resource Hacker¨.
- If your deployment target (your test computer) has less than 1GB ram, you will get a blue screen of death!