BT

InfoQ Homepage News Assigning File Types to ClickOnce Applications

Assigning File Types to ClickOnce Applications

Bookmarks

ClickOnce is a deployment technology used primarily for WinForms based applications. It supports automatic updates and can be launched from either a website or the Start menu. When using the former, query string arguments in the URL are passed to the application.

Using a technique described by Mike Wade, file types can also be associated with ClickOnce applications. This is done by adding a file association tag to the applications manifest file. For Visual Studio users, this means adding an app.manifest file, which will be automatically merged into the full manifest when publishing.

Mike Wade lists a number of rules that must be followed,

  • Values must be given for all 4 xml attributes
  • File associations only work for pure ClickOnce applications. That means that browser-hosted applications and Office documents can't take advantage
  • The application must be targeting the 3.5 version of the .NET Framework
  • The application must be full trust
  • The application must be installed (not run from web)
  • There is a limit of 8 file associations per application

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.