You don't have to enter to the event loop of the application at all if showing a progress bar is all what your application does...