Web Setup Project w/ Custom Action

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a web setup project for my ASP.NET
application that works fine. Also, I have followed the
instructions for using a custom action to launch a web
page after the installation is complete. This works great
too, for web pages not associated with my new application.

I would like to launch a web page that is part of the
application that was just installed. The sample in MSDN
shows using the following syntax:

Process.Start("http://www.microsoft.com/")

Instead, I'd like to do use something like:

Process.Start("http://localhost/myapp/Default.aspx")

This page will include information about how to use the
application, as well as some links for specific pages
within the application. I'd use a "Readme" user interface
element, but it uses RTF, and I wouldn't be able to
include the hyperlinks (as far as I can tell).

I haven't been able to figure out how to retrieve the
virtual directory that my application was just installed
in, so that I can properly reference my page in the custom
action code. Any suggestions?

Thanks,

A. Lovhaug
 
A. Lovhaug,

I don't know if this helps you, but a Web Setup project uses a custom
property called TARGETVDIR to refer to the virtual directory for the
project. If you want to replace that with your example, I would try the
following:

http://localhost/[TARGETVDIR]/Default.aspx

I'm not a setup engineer so I can be sure if this will work, but I'm sure
that the property is correct.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
 
Thanks for the response. Yes, I have even seen another
post or two regarding this custom property. However,
using this value with Process.Start:

Process.Start("http://localhost/[TARGETVDIR]/Default.aspx")

doesn't seem to work. It does not substitute the virtual
folder name for [TARGETVDIR].

The example I used for launching a web page at the end of
an installation is located MSDN, and is
called "Walkthrough: Creating a Custom Action". Since in
this example, a simple Windows application is created (not
an Installer class),

I suspect the Windows Application doesn't even know about
the virtual directory, which is why the substitution
doesn't work. I believe I need to pass the value of
[TARGETVDIR] into my Windows application (possibly as a
command line argument), but I guess I'm not sure how I
would go about doing that. I'm less worried about
retrieving the value once it is passed in, but I'm not
sure where to retrieve the value and send it to my
application in the first place.

Any suggestions would be greatly appreciated. Thanks!

A. Lovhaug

-----Original Message-----
A. Lovhaug,

I don't know if this helps you, but a Web Setup project uses a custom
property called TARGETVDIR to refer to the virtual directory for the
project. If you want to replace that with your example, I would try the
following:

http://localhost/[TARGETVDIR]/Default.aspx

I'm not a setup engineer so I can be sure if this will work, but I'm sure
that the property is correct.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: <[email protected]>
Sender: <[email protected]>
Subject: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 14:29:02 -0800
Lines: 31
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOtWjP4+zjeOFJeS92ULM3pnCKJKg==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:191542
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I have created a web setup project for my ASP.NET
application that works fine. Also, I have followed the
instructions for using a custom action to launch a web
page after the installation is complete. This works great
too, for web pages not associated with my new application.

I would like to launch a web page that is part of the
application that was just installed. The sample in MSDN
shows using the following syntax:

Process.Start("http://www.microsoft.com/")

Instead, I'd like to do use something like:

Process.Start("http://localhost/myapp/Default.aspx")

This page will include information about how to use the
application, as well as some links for specific pages
within the application. I'd use a "Readme" user interface
element, but it uses RTF, and I wouldn't be able to
include the hyperlinks (as far as I can tell).

I haven't been able to figure out how to retrieve the
virtual directory that my application was just installed
in, so that I can properly reference my page in the custom
action code. Any suggestions?

Thanks,

A. Lovhaug

.
 
Lovhaug,

You might want to try posting in the msi group to see if they have any
ideas.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: <[email protected]>
Sender: <[email protected]>
References: <[email protected]>
Subject: RE: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 16:48:57 -0800
Lines: 116
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcOtbb+2qMGzHsdRR1qOsCAhsgDukg==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:191582
NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Thanks for the response. Yes, I have even seen another
post or two regarding this custom property. However,
using this value with Process.Start:

Process.Start("http://localhost/[TARGETVDIR]/Default.aspx")

doesn't seem to work. It does not substitute the virtual
folder name for [TARGETVDIR].

The example I used for launching a web page at the end of
an installation is located MSDN, and is
called "Walkthrough: Creating a Custom Action". Since in
this example, a simple Windows application is created (not
an Installer class),

I suspect the Windows Application doesn't even know about
the virtual directory, which is why the substitution
doesn't work. I believe I need to pass the value of
[TARGETVDIR] into my Windows application (possibly as a
command line argument), but I guess I'm not sure how I
would go about doing that. I'm less worried about
retrieving the value once it is passed in, but I'm not
sure where to retrieve the value and send it to my
application in the first place.

Any suggestions would be greatly appreciated. Thanks!

A. Lovhaug

-----Original Message-----
A. Lovhaug,

I don't know if this helps you, but a Web Setup project uses a custom
property called TARGETVDIR to refer to the virtual directory for the
project. If you want to replace that with your example, I would try the
following:

http://localhost/[TARGETVDIR]/Default.aspx

I'm not a setup engineer so I can be sure if this will work, but I'm sure
that the property is correct.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: <[email protected]>
Sender: <[email protected]>
Subject: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 14:29:02 -0800
Lines: 31
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOtWjP4+zjeOFJeS92ULM3pnCKJKg==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:191542
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I have created a web setup project for my ASP.NET
application that works fine. Also, I have followed the
instructions for using a custom action to launch a web
page after the installation is complete. This works great
too, for web pages not associated with my new application.

I would like to launch a web page that is part of the
application that was just installed. The sample in MSDN
shows using the following syntax:

Process.Start("http://www.microsoft.com/")

Instead, I'd like to do use something like:

Process.Start("http://localhost/myapp/Default.aspx")

This page will include information about how to use the
application, as well as some links for specific pages
within the application. I'd use a "Readme" user interface
element, but it uses RTF, and I wouldn't be able to
include the hyperlinks (as far as I can tell).

I haven't been able to figure out how to retrieve the
virtual directory that my application was just installed
in, so that I can properly reference my page in the custom
action code. Any suggestions?

Thanks,

A. Lovhaug

.
 
Back
Top