I wasted my half of the day in the same issue saying "an error occured while preparing the installation .Try running this application again"
but I found a way to solve this issue , it worked for me you should try this out.
1. open disk utility--> mount lion.dmg-->create two partitions one...