Reboot PC and run program on startup

Got a problem you cannot solve? Try here.
Post Reply
rdeberry
Posts: 24
Joined: Tue Jan 17, 2006 9:16 am
Location: Texas, USA

Reboot PC and run program on startup

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

You may want to check out "RunOnce" in the MSDN library
Here http://msdn.microsoft.com/library/defau ... ca.xml.asp
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post 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.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
Install[b]Aware[/b] Software Corporation
Post Reply