By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,813 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Web Setup Project w/ Custom Action

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
ja******@online.microsoft.com

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

--------------------
Content-Class: urn:content-classes:message
From: <Lo***********@coolbits.nu>
Sender: <Lo***********@coolbits.nu>
Subject: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 14:29:02 -0800
Lines: 31
Message-ID: <0b****************************@phx.gbl>
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


Nov 18 '05 #2

P: n/a
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 customproperty called TARGETVDIR to refer to the virtual directory for theproject. If you want to replace that with your example, I would try thefollowing:

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

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

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: <Lo***********@coolbits.nu>
Sender: <Lo***********@coolbits.nu>
Subject: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 14:29:02 -0800
Lines: 31
Message-ID: <0b****************************@phx.gbl>
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:191542NNTP-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 greattoo, 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 interfaceelement, 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 customaction code. Any suggestions?

Thanks,

A. Lovhaug


.

Nov 18 '05 #3

P: n/a
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
ja******@online.microsoft.com

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

--------------------
Content-Class: urn:content-classes:message
From: <Lo***********@coolbits.nu>
Sender: <Lo***********@coolbits.nu>
References: <0b****************************@phx.gbl> <v3*************@cpmsftngxa06.phx.gbl>Subject: RE: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 16:48:57 -0800
Lines: 116
Message-ID: <06****************************@phx.gbl>
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
ja******@online.microsoft.com

This post is provided as-is with no warranties and

confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: <Lo***********@coolbits.nu>
Sender: <Lo***********@coolbits.nu>
Subject: Web Setup Project w/ Custom Action
Date: Mon, 17 Nov 2003 14:29:02 -0800
Lines: 31
Message-ID: <0b****************************@phx.gbl>
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.gblmicrosoft.public.dotnet.framework.aspnet:191542NNTP-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 worksgreattoo, for web pages not associated with my newapplication.
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" userinterfaceelement, 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 thecustomaction code. Any suggestions?

Thanks,

A. Lovhaug


.


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.