CD Autorun Example
CD Autorun Example
If I create an install package that requires a reboot and start that package from the CD Autorun example the CD Autorun dialog stays open because it does not respond to the system close request and subsequently no reboot. Am I doing something wrong?
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi Jim
InstallAware windows can only be closed by the end-user - this is probably why the reboot is failing when Autorun is showing.
InstallAware windows can only be closed by the end-user - this is probably why the reboot is failing when Autorun is showing.
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/
Have any requirement write a file out to disk when it wants to reboot and then when program flow returns to the CD Autorun script check for that file if it exists issue a reboot and resume from the CD Autorun script, then on restart of that script check inside the file you write out for which executable wanted the restart and run that executable with out user intervention.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
The problem is that the user is asked via checkbox at the end of the install to "Reboot now". By then it's too late to write to a file. As far as I know, anything like writing to the registry or a file has to be done prior to the Apply Install action. The decision to restart doesn't occur until immediately before the user clicks Finish.
I simply close CD Autorun after I have launched my installer:
..and a reboot is no problem any more.
Code: Select all
if Variable CHOICE Equals INSTALL
Run Program $SFXPATH$\\install\\netman.exe
Terminate Installation
end
..and a reboot is no problem any more.
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
Who is online
Users browsing this forum: No registered users and 105 guests