473,322 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 20771
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
How do I launch an executable at the end of an installation created by Microsoft Visual Studio setup and deployment project?
0
by: deploying visual basic .net application | last post by:
Hi There, I'm trying to create a setup for a Windows application to install my application I developed using Visual basic .net. I'm using Visual Studio .net Professional. When I use the Set up...
4
by: Shelby | last post by:
Hi, if I launch another application in my vb code, how can I wait for it to complete first? Dim myProcess As Process myProcess = New Process myProcess.Start("test.exe") ' I want to wait for...
2
by: A.Carter | last post by:
I am developing a windows application with Visual Studio 2003 using C#. The application is complete so naturally I went to create a setup package. I added a setup project to the solution and I went...
0
by: psmukilan | last post by:
Can any one guide me 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...
1
by: Rob R. Ainscough | last post by:
I have an older application that was installed via msi approach (setup via InstallShield), however, it has a different product code than the new version (setup via Deployment Project in a VS 2005...
5
by: Dan | last post by:
Hi I need to be able to launch an appliction that is running on an ftp site. ftp://localhost/someapp.exe I don't won't to download it first, just run it from the ftp location, just like you...
0
by: Smokey Grindel | last post by:
I have a setup project that runs a custom setup action on the commit phase... I want it to launch a process for the user when it is done (basically run app when setup is finished) but here is the...
0
by: Vajrala Narendra | last post by:
Hi all, TO my .net setup project i want to add a launch condition for crystal report installation. In my prerequisities i selected Crystal reports fro basic visual studio 2008 (x64, x86) in my...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.