I am interested in writing an application which runs in a pre-login environment, i.e. right after a user enters their username and password, much like how OS X does the initial account setup:

How does this work? I've used iHook to run scripts, but I'd like to use replicate the same look and feel of Apple's initial account setup.