Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Web Setup Project w/ Custom Action (http://www.velocityreviews.com/forums/t66927-web-setup-project-w-custom-action.html)

11-17-2003 10:29 PM

Web Setup Project w/ Custom Action
 
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


Jim Cheshire [MSFT] 11-17-2003 11:32 PM

RE: Web Setup Project w/ Custom Action
 
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
jamesche@online.microsoft.com

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

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



11-18-2003 12:48 AM

RE: Web Setup Project w/ Custom Action
 
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
>jamesche@online.microsoft.com
>
>This post is provided as-is with no warranties and

confers no rights.
>
>--------------------
>>Content-Class: urn:content-classes:message
>>From: <LovhaugOnline@coolbits.nu>
>>Sender: <LovhaugOnline@coolbits.nu>
>>Subject: Web Setup Project w/ Custom Action
>>Date: Mon, 17 Nov 2003 14:29:02 -0800
>>Lines: 31
>>Message-ID: <0bc601c3ad5a$33f8a160$a001280a@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
>>
>>

>
>.
>


Jim Cheshire [MSFT] 11-18-2003 05:28 PM

RE: Web Setup Project w/ Custom Action
 
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
jamesche@online.microsoft.com

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

--------------------
>Content-Class: urn:content-classes:message
>From: <LovhaugOnline@coolbits.nu>
>Sender: <LovhaugOnline@coolbits.nu>
>References: <0bc601c3ad5a$33f8a160$a001280a@phx.gbl>

<v3tGEMWrDHA.444@cpmsftngxa06.phx.gbl>
>Subject: RE: Web Setup Project w/ Custom Action
>Date: Mon, 17 Nov 2003 16:48:57 -0800
>Lines: 116
>Message-ID: <06fb01c3ad6d$bfb645a0$a301280a@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
>>jamesche@online.microsoft.com
>>
>>This post is provided as-is with no warranties and

>confers no rights.
>>
>>--------------------
>>>Content-Class: urn:content-classes:message
>>>From: <LovhaugOnline@coolbits.nu>
>>>Sender: <LovhaugOnline@coolbits.nu>
>>>Subject: Web Setup Project w/ Custom Action
>>>Date: Mon, 17 Nov 2003 14:29:02 -0800
>>>Lines: 31
>>>Message-ID: <0bc601c3ad5a$33f8a160$a001280a@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
>>>
>>>

>>
>>.
>>

>




All times are GMT. The time now is 12:46 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.