Click here to Skip to main content
15,888,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have managed to encrypt a file and set its extension to (.encrypted).

Now, I am trying to add file type association in my App so that whenever the user opens a file with extention (.encrypted), it will be opened with my metro app so that i can process on that file (i.e. decrypt that file and set its original extention back).

I have set Display Name, Info Tip and Name property in Properties section.

I have added (.encrypted) in File Type field, BUT LEFT THE "Content Type" field empty, as i don't know what to write there.

I am totally confused what should i input in "App Settings" section, which has three fields (Executable, Entry Point and Start Page).

The page on which i have written decryption code is named as default (i.e. MainPage.xaml).

Now please help me out what should i input in App Settings section AND do i need to provide "Content Type" field ???

Any help will be greatly appreciated...
Posted
Comments
vivek.khatri 16-Mar-13 2:19am    
Hello sir, thank you for reply..

I have tried that too, but no success..

I think I'm making mistake in setting "App Settings" section.

If I provide Start Page property value "MainPage.xaml" (the page that will handle the file), when i open the file with .encrypted extension, it starts my application, but after the splash screen, i'm being taken directly to the start screen.

Please specify what to fill up in the "App Settings" section for my scenario.

My project is in VB, the page that will handle the file is the default page (i.e. MainPage.xaml).

Note :- I have left the "Content Type" field empty because i didn't know what to provide there.

1 solution

I wrote a pretty immersive article on this in my "31 Days of Windows 8" series.

http://31daysofwindows8.com

Here's the article:

http://www.jeffblankenburg.com/2012/11/18/31-days-of-windows-8-day-18-file-associations-app-contracts
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900