How can I make the newly installed application launch after installation?
Thanks.
In the installer project, if you right-click the main heading for the
project and select View > Custom Actions.
Then , right click the "Install" folder, select "Add Customer Action", then
search in the Application folder for your main executable. This should make
this run at the end of the installation.
HTH, Simon
--
==============================
Simon Verona
si...@aphroditeuk.com
==============================
"Ed Crowley" <curs...@pacbell.net> wrote in message
news:eOuZx0BM...@tk2msftngp13.phx.gbl...
Is there any way of launching the installed application "in the background"
while still allowing the installer to finish?
"Simon Verona" <msn...@aphroditeuk.com> wrote in message
news:O$VUI5CMD...@TK2MSFTNGP11.phx.gbl...
--
==============================
Simon Verona
si...@aphroditeuk.com
==============================
"Ed Crowley" <curs...@pacbell.net> wrote in message
news:OLXAdNDM...@TK2MSFTNGP10.phx.gbl...
1. Dump the following code into a new text file named "CARunExe.vbs".
cmd = Session.Property("CustomActionData")
Set wsh = CreateObject("WScript.Shell")
wsh.Run cmd, 1, True
2. Right click on your Setup project and select View / Custom Actions.
3. Right click on the Install node and select Add Custom Action.
4. In the "Select Item in Project" dialog, double click on the "Application
Folder" and then select "Add File" to add CARunExe.vbs.
5. Set the "CustomActionData" property to contain the command line for the
action; in this case "[TARGETDIR]WindowsApplication1.exe" (or whatever your
main program happens to be).
Hope that does it for you!
Dave Templin – Visual Basic Development
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: "Simon Verona" <msn...@aphroditeuk.com>
> References: <eOuZx0BM...@tk2msftngp13.phx.gbl>
<O$VUI5CMD...@TK2MSFTNGP11.phx.gbl>
<OLXAdNDM...@TK2MSFTNGP10.phx.gbl>
> Subject: Re: Simple Installer Project Question
> Date: Wed, 11 Jun 2003 19:06:54 +0100
> Lines: 55
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <etBCEREM...@TK2MSFTNGP10.phx.gbl>
> Newsgroups: microsoft.public.dotnet.languages.vb
> NNTP-Posting-Host: btosat-217-159-16-198.btopenworld.com 217.159.16.198
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
> Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:113618
> X-Tomcat-NG: microsoft.public.dotnet.languages.vb
""Dave Templin [MS]"" <dt...@online.microsoft.com> wrote in message
news:qoEDTzGM...@cpmsftngxa06.phx.gbl...
> This is a little tricky without explicit steps, so here they are...
>
> 1. Dump the following code into a new text file named "CARunExe.vbs".
>
> cmd = Session.Property("CustomActionData")
> Set wsh = CreateObject("WScript.Shell")
> wsh.Run cmd, 1, True
>
> 2. Right click on your Setup project and select View / Custom Actions.
> 3. Right click on the Install node and select Add Custom Action.
> 4. In the "Select Item in Project" dialog, double click on the
"Application
> Folder" and then select "Add File" to add CARunExe.vbs.
> 5. Set the "CustomActionData" property to contain the command line for the
> action; in this case "[TARGETDIR]WindowsApplication1.exe" (or whatever
your
> main program happens to be).
>
> Hope that does it for you!
>
>
> Dave Templin - Visual Basic Development