Simple.
In the "OnShutdown" run the program you want.
You would have a line similar to:
Shell.Execute( _SourceFolder.."\\MyProg.exe", "", "", "", SW_SHOWNORMAL);
BTW: Do it just before the g_HandleSystemReboot(); call if you have that in your OnShutdown script.

