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.
Reboot PC and run program on startup
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
You may want to check out "RunOnce" in the MSDN library
Here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_d/hh/DevInst_d/install-over_6345fe15-9f40-4f74-8bb1-390d85b15aca.xml.asp
Here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_d/hh/DevInst_d/install-over_6345fe15-9f40-4f74-8bb1-390d85b15aca.xml.asp
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.
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\"
InstallAware Software Corporation
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation
Who is online
Users browsing this forum: Majestic-12 [Bot] and 127 guests