1. Format the Pen drive or USB drive in NTFS format first.
2. From the start menu right click on the command prompt and select “Run as administrator“.
3. Now type the following commands (Press enter key after each command).
diskpart (This is to open the disk partition program.)
Now to show the list of drives type list disk
You can see disk’s listed there. Note down the disk number of your pen drive eg. Disk .
4. Now type SELECT DISK <X> (where X is the number you noted down for the pen drive)
5. Now type CLEAN
6. Now type the following commands by pressing enter after each one.
CREATE PARTITION PRIMARY
SELECT PARTITION 1 (Assuming your pen drive/ USB drive is 1).
EXIT(Now the disk partition program will exit). Now we need to give some more commands.
7. Now insert the Windows 7 Installation DVD and to your DVD drive. Here i am assuming DVD drive as G and Pen drive as I.(Change it accordingly).
8. Now type G:CD BOOT
9. Now type this command BOOTSECT.EXE/NT60 I: to update your USB drive with bootmgr code.
10. Finally copy all the contents from the Windows 7 DVD to your Pen drive. Make sure you don’t cause any errors.
11. Plug / Insert your pen drive to your PC and restart the system.
12. Now Enter the Bios system accordingly by pressing the key delete.(This may vary some times it will be F2 or F12. It depends on the type of your system. Any how during the start up your system will display which key to press to enter the Bios). Now select the USB/ Pen drive as the first boot driver.(Set the first boot priority to USB drive.).
13. Now save the settings in Bios and restart and you will be able to Install Windows 7 using that pen drive.