to commonly asked questions.

Alternative to Office? yes…Pages.

Dear Scotty, 
Earlier today I bought OS X lion to get it and so other family members can test it before installing it. After I bought lion, it started installing correctly. So I left the computer sitting with caffeine (a mac app that makes your computer not go to sleep) and when I came back it was on the login screen (where you pick which account to use). It was as if the computer had logged out or restarted itself. When I logged in the download had canceled and on the purchases page of the Mac App Store it Said "an error has occurred"  
 Screen shot 2011-08-16 at 6.02.40 PM

So I reinstalled it from that page and left for lunch. When I got back the same auto log out/restart thing happened and I got the same message. I was very frustrated and shut down the computer. After it started up i tried installing again and it wouldn't do it (it kept saying "waiting"). so i shut down the computer again.

Once the computer started back up I clicked install once more and it started downloading so i left for about 20 minutes. When I came back, it had done the logout/restart thing and gave me the error message 
again. I then just decided to email you.

If you have any solutions please share them with me. 

The first thing I would try is disabling “caffeine”. Also try going to login items in your user account system preferences and minus out any/all login items except iTunes helper. There could be other third party programs running preventing the install. Also try running the install from another computer but after the download is complete grab the dmg install file before installing because it will self delete after installation is complete. Plenty of threads out there describing how to do it. Check here:

Save Your Bandwidth! Prevent OS X Lion Installer From Self-Destructing! | Cult of Mac
Can I save the downloaded Lion on disc ?: Apple Support Communities

You may be best suited to install the dmg file from a usb drive or key.
This image is a theme.plist hack