Wednesday, March 01, 2006

ClickOnce Trick - supportURL

Specifying Individual Support URLs for ClickOnce Prerequisites

"... just finished a bunch of work on the ClickOnce documents regarding Platform Detection, which ClickOnce uses to check that the operating system and installed CLR are of the appropriate version, and also that any controls required to be installed in the GAC are installed. If ClickOnce detects that one of these prereqs is missing or doesn’t match what the ClickOnce application manifest requires, it halts installation and displays a failure dialog to the user.

An undocumented feature - undocumented until now! - is that this failure dialog can contain a support URL, pointing to a page with more information about how to resolve the failure. E.g., a dependency on a GAC-installed component can point to a page that contains a link to an MSI that installs it.


 

...

You have to hack this in to the application manifest by hand, and then re-sign the application and deployment manifests. Also, the URL will not display unless your app has full trust.

I have a How to about this that will be published later this year. For now, here are the relevant application manifests snippets that show the supportUrl.
..."

Nice. The more information you can provide a user having ClickOnce install issues the better...



Technorati Tags: ,

2 comments:

vieome said...

I just have one question

Greg said...

I've not used this trick yet, but I'll help if I can...