Hi,
Try this and see if it helps,
Add a Windows 7 or 8 install disk to DVD drive and your USB hard disk attached
Open CMD as administrator. D: = DVD drive letter, change if different.
C:\windows\system32>D: ( hit enter key. )
D:\>cd\boot ( hit enter key. )
D:\boot>bootsect /nt60 E: ( hit enter key. ) E: = USB Harddisk change to yours.
Now try again, doing as you described in your post
1.Connect USB Hard Drive. Boot up and press "F12" to select USB Device so we can boot to the USB hard drive.
Also make sure the internal hard disk is attached to sata port 0. After you boot to the WinPE, press the F8 key to get the CMD window and check with Diskpart that your internal HD is Disk 0.
If it is Disk 0 proceed with install, if you get the dirty environment error, just restart and remove the usb harddisk and allow MS to boot to internal HD to finish off installing, reattach USB HD now.
Please bear in mind, that my answer is based on the details given in your post. The more I get the better the answer, Slan go foill, Paul