Deploy on log off but Show-InstallationProgress if user logs in

I have an install that takes 40 minutes to complete.

I would like to commence my install at log off and then if a user logs in during the install, they get the Show-InstallationProgress and any other prompts that they would normally get if logged in from the start.