Launch application after setup is complete

  • Thread starter Thread starter Joe
  • Start date Start date
J

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
 
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
 
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
 
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-us/msi/setup/using_a_custom_action_to_l
aunch_an_installed_file_at_the_end_of_the_installation.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" <[email protected]>
| References: <[email protected]>
<[email protected]>
| 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: <[email protected]>
| 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!TK2MSFTNGP14.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
|
| | > 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
| >
|
|
|
 
Back
Top