CCleaner is a freeware that will do the same thing as far as cleaning up useless temp folders as well as cleaning out the IE history and offline content. Others like RegCleaner and RegSeeker have automatic registry cleanup tools in those.
But caution is advised whenever you start making changes in the registry itself especially manual edits you perform. That is more of a task for the advanced user there.