in reply to http redirection and download
This can probably help:
print the html output with the thank you note, and have a META refresh header tag that redirects to download the executable.
Update: fixed typo