Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple Installer Project Question

1 view
Skip to first unread message

Ed Crowley

unread,
Jun 11, 2003, 9:26:47 AM6/11/03
to
I have created an installer for my VB.NET app using Visual Studio. The
application installs fine, my question is this:

How can I make the newly installed application launch after installation?

Thanks.


Simon Verona

unread,
Jun 11, 2003, 11:29:33 AM6/11/03
to
I've not tried this.. but..

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...

Ed Crowley

unread,
Jun 11, 2003, 12:05:29 PM6/11/03
to
I've tried that and unfortunately it halts the installer until the program
is closed!

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

unread,
Jun 11, 2003, 2:06:54 PM6/11/03
to
well you could try running a seperate executable that shells out your main
executeable.. I've not tried it but it might be worth a go...

--
==============================
Simon Verona
si...@aphroditeuk.com
==============================
"Ed Crowley" <curs...@pacbell.net> wrote in message

news:OLXAdNDM...@TK2MSFTNGP10.phx.gbl...

Dave Templin [MS]

unread,
Jun 11, 2003, 6:56:55 PM6/11/03
to
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
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

Ed Crowley

unread,
Jun 12, 2003, 5:40:41 AM6/12/03
to
I'll give it a go. Many thanks!

""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

0 new messages