How do I create a Mac OS install thumb drive from InstallESD.dmg file using Windows 7? I have completely messed up my Mac OS X Lion 10.7 on my 2011 Macbook Air (Refer thread : Is there an alternative to downloading Lion from the net?) 

Recovery Parition attempts to install from the internet. This is not an option since I have attempted atleast 6 times, It takes 18-20 hours for each iteration and fails somewhere in between because my net connection is not reliable.

What I need to do :


Install Mac OS 10.7 Lion on my MacBook Air


Here is what I have :


InstallESD.dmg file for MAC OS Lion 10.7.4
A PC with Windows 7 32-Bit
2011 Macbook Air (Without CD Rom Drive)
Disk Utility in the Macbook Air Recovery partition
USB CD-ROM
16 GB USB Thumb Drive


How do I accomplish this ?

I found this page but the author claims the tutorial is not valid. So how do I burn a Lion DVD / Thumb drive from Windows 7 ?
Assuming that the InstallESD.dmg is on the windows 7 computer:


Copy the InstallESD.dmg file onto the USB drive (just copy, not burning etc)
Boot into the MacBook's Recovery Partition.
Plug in the USB drive and open disk utility.
Restore the USB drive using the InstallESD.dmg on the USB drive *
Restart and boot from the USB Drive.


*You might not be able to restore from an image that on the drive being restored. In which case use 2 USB drives (one to copy the InstallESD.dmg from the PC and one to restore it to and boot from) or:


open terminal from the Utilities menu in the recovery partition (on the homescreen).
Use ls /Volumes to find the location of your hard drive and USB drive
Use cp to copy the InstallESD.dmg to you hard drive. (e.g. cp /Volumes/USBDrive/InstallESD.dmg /Volumes/Macintosh\ HD/, where you replace the paths with the ones found in step 2)
Open Disk Utility and restore the USB drive using the InstallESD.dmg on your hard drive, if you can't find your hard drive in the Open dialog, press cmd+shift+g and you can enter the path manually.


Or if your USB CD drive can burn DVDs and you have a DVD, you could use the USB drive to copy from windows and then use the Macbook's Disk Utility to burn the image to the DVD. (or use the DVD to copy from the PC and use the USB drive to boot)