c# - Windows 8 specific file type context menu association -



c# - Windows 8 specific file type context menu association -

there need add together item particular file type's context menu. in windows 7 , previous versions that's done adding

hkey_classes_root\<extension>\shell\<commandname>\command

key value of

@="<path_to_app> \"%1\""

to registry. in windows 8 doesn't work. after deleting persistenthandler key of respective type :

what's interesting, if shell/command keys written in hkey_classes_root\*\ section, context menu item appears in menu files expected, that's huge overhead in case need add together application 2-3 filetypes without breaking existing associations. i'm using microsoft.win32.registry.classesroot in c# implement logic, problem not in code because a) works in windows 7 b) manual editing administrator previledges in windows 8 doesn't add together needed association.

you must have noticed there wasn't "shell" key there, though .avi files have open context menu item. there's level of indirection, note default value of .avi key. that's progid associated .avi filename extension.

follow wmp11.assocfile.avi key find shell commands, add together command there.

c# windows-8 registry contextmenu file-type

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -