PDA

View Full Version : Force Launch of Application after install



NewsArchive
12-06-2001, 01:00 AM
I want my application to launch immediately after installation, with no user
intervention. Since I don't have a SetupCompleteSuccess dialog(because my
client doesn't want one), how do I launch my program? I tried creating a
custom action that launches the installed program but the action is called
before the installation program is complete. I also tried calling LaunchApp
from inside the OnEnd event, but the application is still launched before
InstallShield ends. Plus on Win95/98/ME, a reboot is required at the end of
the install. Obviously I don't want the application to run before the
reboot. I'm out of ideas. How do I launch my application AFTER the install?

NewsArchive
12-07-2001, 01:00 AM
As the last line in onFirstUIAfter put

if(!BATCH_INSTALL) then
//LaunchYour App Here
endif;

That will run it in the case where you aren't rebooting. Obviously, if
you're using a non-standard way of stoting the rebbot state, change the if
test to check that.

IS has an onRebooted event which is called when the setup reboots the PC.
Put your app-launching code in their to start on reboot.

If you also want to start after an upgrade, you'll also have to put
something in onMaintUIAfter as well...

Tom

<bplatko@netincom.com> wrote in message
news:3c0fd209@news.installshield.com...
> I want my application to launch immediately after installation, with no
user
> intervention. Since I don't have a SetupCompleteSuccess dialog(because my
> client doesn't want one), how do I launch my program? I tried creating a
> custom action that launches the installed program but the action is called
> before the installation program is complete. I also tried calling
LaunchApp
> from inside the OnEnd event, but the application is still launched before
> InstallShield ends. Plus on Win95/98/ME, a reboot is required at the end
of
> the install. Obviously I don't want the application to run before the
> reboot. I'm out of ideas. How do I launch my application AFTER the
install?
>
>
>