473,890 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 20947
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
LaunchApplicati on in this dll.
I go to the properties for this new action and set:
Condition mycheckboxVaria ble
CustomActionDat a /appName = [TARGETDIR]\myappname.exe
EntryPoint LaunchApplicati on
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******** *************@g 49g2000cwa.goog legroups.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_instal led_file_at_the _end_of_the_ins tallation.asp?f rame=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*******@noem ail.noemail>
| References: <e2************ **@TK2MSFTNGP09 .phx.gbl>
<11************ *********@g49g2 000cwa.googlegr oups.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: 69.37.58.70.ads l.snet.net 69.37.58.70
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.langua ges.csharp:3726 01
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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
| LaunchApplicati on in this dll.
| I go to the properties for this new action and set:
| Condition mycheckboxVaria ble
| CustomActionDat a /appName = [TARGETDIR]\myappname.exe
| EntryPoint LaunchApplicati on
| 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******** *************@g 49g2000cwa.goog legroups.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
psmukilan
3 New Member
[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(tr ue)]
public partial class Installer1 : Installer
{

public event InstallEventHan dler AfterInstall;

public Installer1()
{
InitializeCompo nent();
AfterInstall += new InstallEventHan dler(AfterInsta llEventHandler) ;
}

private void AfterInstallEve ntHandler(objec t sender, InstallEventArg s e)
{
Process.Start(@ "C:\Program Files\Surisoft\ SampleSetup\Sam pleApplication. 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
2220
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
1640
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 wizard. I only have 4 steps, when I look at exaple to create a setup file I find I should have 5 steps. One step Step 3 of 5 is missing in my steps ( Choose project outputs to Include. I don't have this step in my wizard. I am not sure why. I went...
4
7940
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 test to complete and continue with other codes myProcess = Nothing
2
2015
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 through the appropriate steps in attaching the solution dependencies. After completing the setup package, I attempted to install the application on a co-worker's computer. Usually, the installation consist of several screens which directs the...
0
1578
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 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 { public partial...
1
1386
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 solution) I want to install. As a result my newer version does not identify the older version because the product code is different (so it doesn't uninstall it first). What I'd like to do is setup a Launch Condition that first uninstalls my prior...
5
1872
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 would if you use a web browser to reach the ftp site and run it manually. Any ideas?
0
967
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 problem, it is running the application as the "System" user account! not the current logged in user... does anyone know what is going on? how can i get it to run the process as the current user and not system? thanks!
0
3022
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 debug folder i got those respective crystalreport10_5 folder after successful build. i got CRRedist2008_x64.msi,CRRedist2008_x86.msi i want to install CRRedist2008_x86.msi so in my Installurl i specified CRRedist2008_x86.msi's path.
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9819
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10919
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7169
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4270
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.