Page 1 of 1

Reboot PC and run program on startup

Posted: Wed Feb 08, 2006 5:51 pm
by rdeberry
I am trying to get around a problem that occurs on some test machines when files are in use. The normal installation (i.e., you install the software on a vrigin machine with nothing running) works like a champ. It installs the services and launches the small app to configure some parameters that I can't do in the installer. But if there is a need to reboot, the PC reboots but the app never gets launched. How do I set the installer to run the program after a complete install and it needed to reboot?

The run program line is right after the TODO: place code to run your app here.

Posted: Wed Feb 08, 2006 6:19 pm
by MichaelNesmith
Naturally, since a reboot ends the setup program as well as the entire system, there is no way to run the program after a reboot.

Posted: Wed Feb 08, 2006 7:23 pm
by jimo

Posted: Wed Feb 08, 2006 7:29 pm
by Gizm0
Well actually there is a workaround on that..
You can check if the InstallAWARE is going to reboot, and edit the RunOnce registry key under HKLM/Software/Microsoft/Windows/CurrentVersion, so the programm will only run once AFTER reboot, and then windows will remove the entry from your the registry.. I hope this helps.