472,145 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Launch application after setup is complete

Joe
I created a CustomAction for this but I don't think I have it in the right
place. I tried both Install and Commit but neither allow it to get to the
final screen.

Are there any examples of this anywhere?

Thanks,
Joe
Dec 17 '05 #1
4 20506
Create Custom Action,
in Install, add primary output of the application( that you want to
launch after setup is complete) .
Right click on it and Set property "Installer --> false" in Property
window.
This will launch your application
I hope I will work

Parul

Dec 17 '05 #2
Joe
Parul,

I don't get it...

I go to Custom Actions and right click on Install and choose to Add Custom
Action
I select the dll that has my custom action. I have a method called
LaunchApplication in this dll.
I go to the properties for this new action and set:
Condition mycheckboxVariable
CustomActionData /appName = [TARGETDIR]\myappname.exe
EntryPoint LaunchApplication
InstallerClass false
This way the installer complains it can't find the entry point. My class
inherits from Installer.

If I add my exe as the Custom Action how does the installer know what to do?
Also, I didn't see any Installer property. I only see an InstallerClass one.

-Joe

"ABCL" <oh****@hotmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Create Custom Action,
in Install, add primary output of the application( that you want to
launch after setup is complete) .
Right click on it and Set property "Installer --> false" in Property
window.
This will launch your application
I hope I will work

Parul

Dec 18 '05 #3
Hi Joe,

As for launching a certain application after the installation completed,
the VS IDE's setup project dosn't provide direct support on this since VS's
setup project only expose part of all the windows installer sdk's
functionality. To do this, the windows installer sdk (within platform sdk)
provide the Custom Action which help launch a certain program at the end of
the setup .... Here is the msdn reference on it:

#Using a Custom Action to Launch an Installed File at the End of the
Installation
http://msdn.microsoft.com/library/en...om_action_to_l
aunch_an_installed_file_at_the_end_of_the_installa tion.asp?frame=true

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Joe" <jb*******@noemail.noemail>
| References: <e2**************@TK2MSFTNGP09.phx.gbl>
<11*********************@g49g2000cwa.googlegroups. com>
| Subject: Re: Launch application after setup is complete
| Date: Sun, 18 Dec 2005 15:12:58 -0500
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <eY**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 69.37.58.70.adsl.snet.net 69.37.58.70
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.languages.csharp:372601
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Parul,
|
| I don't get it...
|
| I go to Custom Actions and right click on Install and choose to Add
Custom
| Action
| I select the dll that has my custom action. I have a method called
| LaunchApplication in this dll.
| I go to the properties for this new action and set:
| Condition mycheckboxVariable
| CustomActionData /appName = [TARGETDIR]\myappname.exe
| EntryPoint LaunchApplication
| InstallerClass false
|
|
| This way the installer complains it can't find the entry point. My class
| inherits from Installer.
|
| If I add my exe as the Custom Action how does the installer know what to
do?
| Also, I didn't see any Installer property. I only see an InstallerClass
one.
|
| -Joe
|
| "ABCL" <oh****@hotmail.com> wrote in message
| news:11*********************@g49g2000cwa.googlegro ups.com...
| > Create Custom Action,
| > in Install, add primary output of the application( that you want to
| > launch after setup is complete) .
| > Right click on it and Set property "Installer --> false" in Property
| > window.
| > This will launch your application
| > I hope I will work
| >
| > Parul
| >
|
|
|

Dec 19 '05 #4
[quote=ABCL]Create Custom Action,
in Install, add primary output of the application( that you want to
launch after setup is complete) .
Right click on it and Set property "Installer --> false" in Property
window.
This will launch your application
I hope I will work


Dear Parul,


how to launch the installed application immediatley after the Finished screen button clicked. Once the user clicks the finished screen "Close" button, i need to launch the installed application. I tried with installer class. Sample code is given below.I have created a class library and within that an installer class. I tried with the afterInstall event, but its not working.

namespace ClassLibrary1
{
[RunInstaller(true)]
public partial class Installer1 : Installer
{

public event InstallEventHandler AfterInstall;

public Installer1()
{
InitializeComponent();
AfterInstall += new InstallEventHandler(AfterInstallEventHandler);
}

private void AfterInstallEventHandler(object sender, InstallEventArgs e)
{
Process.Start(@"C:\Program Files\Surisoft\SampleSetup\SampleApplication.exe", "/q");
}
}
}

I have tried with custom action install, i added the primary output for the application but it launches the application before completion of progressbar itself. Please help me to sort out this problem.

Regards
Mukilan.P.S
Mar 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by deploying visual basic .net application | last post: by
reply views Thread by Smokey Grindel | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.