CD Autorun Example

Got a problem you cannot solve? Try here.
Post Reply
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

CD Autorun Example

Post by jimo »

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

Post by MichaelNesmith »

Hi Jim

InstallAware windows can only be closed by the end-user - this is probably why the reboot is failing when Autorun is showing.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post by hess_joel »

So If I am reading this correctly, if there is a chance of the install requiring a restart, you shouldn't use the CD Autorun?

Is there anyway around this (besides using something else for the autorun)?
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

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
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post by hess_joel »

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.
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

Write to text file does not require apply install.
Put it right after the Display Dialog Finish inside the if block that checks for reboot and comment out the reboot command.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Tinus
Posts: 209
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Post by Tinus »

I simply close CD Autorun after I have launched my installer:

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

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

Tinus is correct. I made the assumption that you have more than one install package that the users need to run so the CD AutoRun need to restart so they can make there next choice.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply