Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 15-Mar-13 11:30am
Comments
Vivek-The Geek at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 495
1 Maciej Los 340
2 Richard MacCutchan 265
3 BillWoodruff 225
4 Mathew Soji 200
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 25 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100