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
.