Who has painted their engine with a spray gun?

Since I have my engine out for a rebuild, I'm thinking of painting it with a catalyzed paint from a spray gun. Despite good prep, my engines seem to peel a little in some areas so I thought that better quality paint might stick longer.
The spray can stuff is cheap and anyone can paint with it. The lack of a hardener means that the shine often fades in a few years. It would be great to have this engine look great for more than a few years.