How to create file association in WPF application with ClickOnce?

Go To


I have used ClickOne and Set up Project in VS 2010 but it does not working. I double click on associate file but it does not open in my WPF Application.

Plz help me resolve this issue, step to step....

Thank so much!

2012-04-04 17:04
by Hung Nguyen
Understand the file does not load in the WPF Application. What does happen - paparazzo 2012-04-04 20:30


This article on MSDN has a good step-by-step approach.

If ClickOnce is not working for you, you can try doing the installation with Inno Setup. It is an outstanding (and free) installation utility. It is available here, and this link shows you how to create file associations.

I use Inno Setup for all of my desktop application installations.

2012-04-04 17:31
by Stewbob
I try many times but it does not working...I don't know why... - Hung Nguyen 2012-04-04 17:53
Thanks for helping. If I want to get the path which i double click, how can I do - Hung Nguyen 2012-04-04 19:01
@Hung Nguyen, I am not sure I understand what path you are talking about - Stewbob 2012-04-04 19:24
i am writing a WPF Application. I want to double click a custom file such as .myfile and my app will read this file to show it's content. When i use inno setup, how can i get path of file which i double click - Hung Nguyen 2012-04-04 19:37
You don't need to do that. Once you set the file association, when you double-click the file, it will start your application - Stewbob 2012-04-04 20:00