Hello there,
I had the same problem with my Mac Mini, the install would do just fine but then at the setting up your mac screen it stalled for hours. (Literally, I gave it overnight to finish up). It did that twice, (I even installed from a flash drive and formatted my hard drive)
So just to test something, I reinstalled OSX Yosemite and skipped all the sign into my apple account stuff. Instantly my mac was ready.
So for me the fix action was to skip all the sign into my apple account. Maybe that will help you all.
Thanks