CD Autorun Example

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

CD Autorun Example

Postby jimo » Fri Mar 03, 2006 2:10 pm

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:

Postby MichaelNesmith » Fri Mar 03, 2006 2:56 pm

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
InstallAware
Home of The Next Generation MSI Installer
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

Postby hess_joel » Mon May 07, 2007 2:16 pm

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:

Postby jimo » Mon May 07, 2007 3:02 pm

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

Postby hess_joel » Mon May 07, 2007 3:09 pm

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:

Postby jimo » Mon May 07, 2007 3:12 pm

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: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Tue May 08, 2007 12:58 am

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
InstallAware MVP

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:

Postby jimo » Tue May 08, 2007 6:58 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 16 guests