Q: When is Desktop7:ApprovedShellExtension needed?

%3CLINGO-SUB%20id%3D%22lingo-sub-3025026%22%20slang%3D%22en-US%22%3EQ%3A%20When%20is%20Desktop7%3AApprovedShellExtension%20needed%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3025026%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fuwp%2Fschemas%2Fappxpackage%2Fuapmanifestschema%2Felement-desktop7-approvedshellextension%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edesktop7%3AApprovedShellExtension%20-%20Windows%20UWP%20applications%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20one%20of%20the%20extensions%20to%20AppXManifest.%26nbsp%3B%20Presumably%20it%20would%20be%20used%20in%20conjunction%20with%20a%20SurrogateServer%20extension%20and%20a%20specialized%20extension%20that%20is%20specific%20to%20the%20type%20of%20Shell%20Extension%20being%20defined.%26nbsp%3B%20So%20two%20questions%2C%20not%20addressed%20by%20the%20documentation%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%26nbsp%3BWhich%20type%20of%20shell%20extensions%20does%20this%20apply%20(e.g.%3A%20%22all%22%2C%20%22context%20menu%22%20(either%20classic%20or%20other)%2C%26nbsp%3B%20etc...)%3F%3C%2FLI%3E%0A%3CLI%3EWhat%20is%20the%20impact%20of%20including%20or%20not%20including%20this%20element%20on%20supported%20shell%20extensions%20at%20the%20installation%2Fruntime%20of%20the%20application%3F%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3044673%22%20slang%3D%22en-US%22%3ERe%3A%20Q%3A%20When%20is%20Desktop7%3AApprovedShellExtension%20needed%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3044673%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%26nbsp%3B%3CSPAN%3Ethank%20you%20for%20your%20question.%20Someone%20will%20respond%20to%20your%20question%20as%20soon%20as%20possible.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

desktop7:ApprovedShellExtension - Windows UWP applications | Microsoft Docs

 

This is one of the extensions to AppXManifest.  Presumably it would be used in conjunction with a SurrogateServer extension and a specialized extension that is specific to the type of Shell Extension being defined.  So two questions, not addressed by the documentation:

  1.  Which type of shell extensions does this apply (e.g.: "all", "context menu" (either classic or other),  etc...)?
  2. What is the impact of including or not including this element on supported shell extensions at the installation/runtime of the application?
2 Replies

@TIMOTHY MANGAN thank you for your question. Someone will respond to your question as soon as possible.

Your questions are answered by the link on the page for this manifest extension: https://docs.microsoft.com/en-us/windows/win32/shell/reg-shell-exts But to reiterate what the page says:

 

Yes this would be used in conjunction with a COM class in the manifest that is exposed through Packaged COM (windows.comServer), and is being used as a Shell Extension Handler. This applies to all the shell extensions that can be declared in the appxmanifest

 

The impact of including or not including this element is whether or not the shell extension would be turned off when an admin on the machine turns on the key EnforceShellExtensionSecurity , again as described on the page’s link.