63 - Install XP and Win7 onto a computer from one USB flash drive containing ISO files!

hits drupal counter

Note: This is for Win7/Vista/XP install ISO files only.

Use Easy2Boot for XP/Vista/7/8 ISO installs + linux Live CD + almost any other ISO you want to boot!

ATTENTION: This Tutorial is now outdated
Please use Easy2Boot for Windows Install ISOs - it is much easier and better!

The download for this tutorial also includes menu entries for HBCD, UBCD, DSL, Knoppix, YLMF, Acronis, PMagic, etc. to make a multiboot USB drive. Just add the correct files!


If you have purchased a Windows 7 Professional or Ultimate computer which has a valid and legal Certificate of Authenticity (COA), then you are licensed to run Win 7 Pro or XP Pro via downgrade rights. However, many manufacturers annoyingly do not provide Recovery Media (e.g. they do not provide a bootable DVD or a bootable Flash memory stick). Asus EeePCs now do not come with any form of external recovery media feature! Some other Original Equipment Manufacturers (OEMs) include an application to allow you to make backup DVDs if they have an internal DVD writer fitted, but even if you have enough writeable DVDs (which are never provided!), the final backup contains GB's of 'crapware'. If any one of the DVDs get scratched you have lost your backup image for good! This is really annoying if you want to install Windows back onto your computer at a later date.
If you do manage to install Windows from a different source (perhaps borrow a friends DVD?), you then still have the problem of activating it. This normally this cannot be done unless you have the original matching OEM Recovery DVD from the same manufacturer (which is often not obtainable from the manufacturer even if you ask them!). However, you can install and activate both XP and Windows 7 onto a blank hard disk from a bootable USB Flash drive within about an hour using the method below. Activation can be done by 'hacking' Windows (which is against the Microsoft licensing agreement and is done at your own risk!). You will need to search for the XP SP3 iso file using your favourite search engine; since it is illegal to host Microsoft XP ISOs, I cannot provide a link for those of you that do not already have an XP Pro installation CD or copy of the ISO file.

This tutorial should only be used to install Windows on systems which have a valid Microsoft Windows licence.

This tutorial has been tested many times using an Asus EeePC 904HA netbook. It shows you how to create a multiboot USB Flash drive which can install both XP and Windows 7 onto the same system's hard disk drive. It can also be used to boot to FreeDos (perhaps to update a BIOS) or test memory or erase a hard disk and can be expanded for many other uses just by adding the appropriate ISO files (in most cases).
YouTube video of this Tutorial - please watch...

Procedure Summary

  • Prepare a bootable USB flash drive using RMPrepUSB v2.1.638 or later
  • Add the XP ISO file and rename it
  • Add the Windows 7 iso and rename it
  • Check the ISO files are contiguous and check each ISO MD5 hash is correct
  • Boot from the USB flash drive, choose XP Step 1 and press F6 etc., reboot to Step 2 and install XP Pro onto the target system
  • Activate Windows XP Pro
  • Boot from the USB flash drive and install Windows 7 onto the target system
  • Activate Windows 7
  • (optional) add Hirens Boot CD, Damn Small Linux, Ophcrack, Parted Magic, Ultimate Boot CD, Knoppix, Acronis, Darki's Boot and Nuke, etc. (the menus are already in the menu.lst download file - just add the files to your USB drive!)


  • Original version
  • v7 2012-11-16 - updated for Hirens Boot CD v15.2 ISO - see Tutorial #29 for details.

Required Downloads

Before you begin, make sure you have these 4 files...
  • Windows XP Professional SP3 OEM XP ISO file - MD5=9bb3cb003e2c6005fccc28c305be05ff (search for the MD5 checksum and you should find a copy to download). If you have an XP Pro install/recovery CD, you can create an ISO file from it using MagicISO or ISODisk or any similar utility. An unmodified ISO is required, otherwise WinVBlock or FiraDisk may not load using F6.
    • Note: For those of you not familiar with MD5 hash values (or CRC32 or SHA1 values), this is a way off 'adding' together all the bytes in a file in such a way as to ensure that all the bytes and their order within a file is correct (taking an MD5 hash does not change the file in any way). For instance, if a website says the MD5 of an ISO file is 9bb3cb003e2c6005fccc28c305be05ff, then after you download it, use RMPrepUSB and ALT+F2 and point the checksim utility 'HashMyFiles' at the newly downloaded ISO file, after it has calculated the MD5 of the file, check that it matches 9bb3cb003e2c6005fccc28c305be05ff. Then copy the ISO to your USB drive (following the instructions below) and again use ALT+F2 to get the MD5 hach value of the ISO file that is now on the USB drive. If you get the same number, then this guarantees that the ISO file is not corrupt on your USB drive. It is not uncommon for file corruption (or shortening) to occur during download or file copy operations to a USB drive, so I highly recommend you always check the MD5 value of any large file. If you are not told what MD5 value to expect, compare the MD5 value of the ISO file on your hard disk after downloading, with the MD5 value once it is on your USB drive - this ensures your USB drive copy is OK.
  • Windows 7 SP1 ISO file (make a note of the MD5 checksum from the website so you can check it on the USB drive later). You can also install Vista from an ISO file in the same way as Win 7.
  • Latest Beta RMPrepUSB v2.1.638 or later (download it and install it).
  • XP7PWD.zip download from this site and extract - protected by a secret password (hint: 9 lower case letters - a well known USB preparation utility that is part of the current URL in your browser now!)
    Note: This download may be reported as a threat by some antivirus utilities - but it is not a virus and will not harm your system or privacy!

You will also need...

  • A 4GB or larger USB Flash drive (not a USB hard drive - because USB HDD's won't work for the Win 7 install in this tutorial!)
  • Any Windows PC with which to prepare the USB flash drive
  • The 'target' computer that you want to install Windows onto - e.g. notebook with a new hard disk - must have >512MB of memory.


Install RMPrepUSB

1. Install the latest version of RMPrepUSB to a Windows computer. You'll need v2.1.638 or later as this has the latest grub4dos version and it includes WinContig.

Prepare the installation folder C:\Win7XP

2. Download the file XP7PWD.ZIP and extract it to a new folder on your Windows hard disk - for example C:\Win7XP (you will need to enter a password for the zip fle as it is password protected - see the 'Required Downloads' section for the password!)

Download and rename the ISOs...
3. Download and copy the Windows XP SP3 OEM ISO file (you will have to search the internet for this if you do not have the CD or the ISO already - see Required Downloads section above for details).
Make sure the the XP ISO file is placed in the folder C:\Win7XP\_iso\Windows and rename it to XPPROSP3.ISO if it is Professional. If you have an XP Home ISO, it should be named XPHOMESP3.ISO. You can have both XPPROSP3.ISO and XPHOMESP3.ISO if you wish. So you can have one or both of:


4. Download one or more Windows 7 SP1 or SP0 (RTM) or Vista ISOs and copy each ISO file to the folder C:\WIN7XP\_iso\Windows.
I would suggest you use the Professional versions (usually they all contain all versions except Enterprise anyway).

4.1 Rename each ISO file as in the list below. The following ISO's can be added and will automatically be listed in the menu:

_ISO\Windows\Vista_32.iso (this can be any version but must be named like this)
_ISO\Windows\Vista_64.iso (this can be any version but must be named like this)
_ISO\Windows\SVR2K8R2_64.iso (this can be any version but must be named like this)

If you want to install a 64-bit version of Win 7, it will still work fine, but you must name the iso file as Win7_64_SP1.iso (or Win7_64_SP0 if it is the first non-SP1 RTM version).
Most Windows 7 ISO files will contain all versions of Windows 7 (Starter, Home Basic, Home Premium, Professional, Ultimate) even if it says it is only for one of these!
When you install using this method, you will be able to choose any of the Win7 versions. So just download any one or all of the Win 7 Professional ISO files and rename them accordingly.
If you want a USB Flash drive that also has Vista then add all these ISO files and name them correctly too.
If you want to add more versions of Vista or Windows 7 Enterprise or even Server 2K8 R2, just add another menu entry to the menu.lst file using Windows NotePad as a text editor. Each menu entry begins with 'title'. You must change all references to the ISO file so that the name of the ISO file matches the name in the menu.

Prepare the USB Flash drive

Note: Win 7/Vista/SVR2K8 installation does not work if you use a USB hard disk - you must use a USB Flash memory (pen) drive that is seen by Windows as a Removable drive (shown by RMPrepUSB when the drive is selected). If you just want to install XP, you can use either a USB hard disk or a USB Flash drive.

The USB drive must be large enough to take all the ISO files that you want to put on it.

5. Run RMPrepUSB and set the options as follows (see screenshot below):

1 Size = MAX
2 Volume label = RMPrepUSB (or whatever you like!)
3 WinPE v2 [BOOTMGR]
4 FAT32 (if you do not need to boot to FreeDOS then use NTFS as it is faster and supports files larger than 4GB) - also tick the Boot as HDD checkbox.
5 Tiick 'Copy OS files' and set the copy files path to that of your hard disk folder where you have copied the files (do NOT choose extract) e.g. C:\Win7XP
6 Click on 6 Prepare Drive

Install grub4dos

After the drive has been formatted and the files from the C:\Win7XP folder have been copied over by RMPrepUSB...

5.1 Click on the Install grub4dos button
answer Yes to MBR question
hit Enter next to copy over the grldr file when prompted (do not close down the command shell - you must hit the [Enter] key as prompted).

: RMPrepUSB Beta includes the latest version of grub4dos - you MUST use the latest version of the grub4dos grldr file (December 2011 or later).

Even if you don't format the drive with RMPrepUSB, please use the latest version of RMPrepUSB to install grub4dos.

6. You should now have a USB Flash drive with the following contents (check the iso files are present and correctly named!):

7,998 AutoUnattend.xml
48,745 back.xpm.gz
60 FDAUTO.bat
272,013 grldr
1,494 How to Activate XP.txt
16,897 Menu.lst
231,424 message
105,592 PCIID.ima.gz
43,319 plpbt.bin
721,160 winvblock.ima.gz
39 xpsp3_Key.txt
850 ActivateXP.cmd
<DIR> FiraDisk
<DIR> Windows Loader
<DIR> WinVBlock
<DIR> _iso

7. Now check that the USB Flash drive will boot and show a menu, test it in RMPrepUSB by pressing the F11 key to run QEMU - answer 0 to the virtual disk question (or 2000 if you want to actually try to install XP to a virtual hard drive). This does not change your current OS but does make a 2GB file on your hard drive which you can later boot from using menu option 1.
Hit Enter for the virtual RAM size - do not use a size over about 1.3GB.
You should see a menu with XP install and Windows 7 install items listed (3-7).
If some entries are missing then check that you have copied the iso files to the /_iso/Windows folder and named them correctly.
If you just see a grub> prompt then you did not follow the instructions in step 5.1 correctly - you must hit the [Enter] key after grub4dos has been installed so that the grldr file is copied over.
Once all menu items are listed, you should now have a bootable USB Flash drive!
If you see a 'bootmgr is missing' error message then you have forgotten to install grub4dos in step 5.1!
Try the menu items to see if they work (this won't affect the system files on your hard disk at all - it is quite safe). To quit QEMU, hit ALT+CTRL and then click on the X in the top right corner of the form.

Items 3-7 should be the Win 7 and XP options if the iso files are present.
Tip: To change the menu title or menu text, edit menu.lst using NotePad (or press F4 in RMPrepUSB).

8. (Optional) Download any XP and Win7 network (LAN or WiFi) drivers for the target system and store them on the USB Flash drive. These will be required in order to get updates as an internet connection will be required. You can also add any other drivers (such as chipset, graphics, audio, etc.) for your target system at this stage as you will need them later on once Windows is installed.

9. To avoid 'File is not contiguous' errors - run RMPrepUSB and type CTRL+F2 to run WinContig and defrag all files on the selected drive.

10. IMPORTANT: Check the MD5 hash checksum of the ISO files in the /_iso/Windows folder on the USB drive to ensure they have been copied correctly.
You can do this by pressing ALT+F2 in RMPrepUSB. This is worth the few minutes it takes and may save you lots of frustration later. It is not uncommon to find errors when copying large files to a USB Flash drive! If you get the wrong MD5 checksum, check the MD5 of the copy on the hard disk and/or repeat USB drive preparation again.

Note: If you delete an iso file from the USB drive and copy over another iso file, then run step 9 again to ensure the files are still contiguous.