Skip to content
February 27, 2009 / kiranpatils

Add More than one file Associations to a ClickOnce Application


One of my friend has one windows application and when he publish it using Clickonce it should be mapped with his custom file extension. For example “.JPG” and “.PNG” files should be mapped with his application called “MyPaint.exe”.

We found it that how to do it for one extension as shown in great post :

But no information provided here for how to do it for multiple file extension..hooh it took us half of the day to do it..Here is the way…


1. Follow the steps given in Above post. Test it for one extension if it works for it then go to step 2.

[NOTE: you can open app.manifest under properties->App.manifest.dll double click it.] It will open .manifest in XML editor.

2.Here for one extension code we have added is as shown below:

<fileAssociation xmlns=”urn:schemas-microsoft-com:clickonce.v1″


description=”My PAINT”




3. NOW for adding one more extension here is the way:

<fileAssociation xmlns=”urn:schemas-microsoft-com:clickonce.v1″


description=”My PAINT”




<fileAssociation xmlns=”urn:schemas-microsoft-com:clickonce.v1″


description=”My PAINT”




NOTE: Your both Program ID should be different!!

That’s it.

Hope it helps you kick off your project on its Release date:)

If it helped you say Thank to My friend who has introduced a nice problem to me..

Link which has given us a Kick :

Sample code can be downloaded from here


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: