简体   繁体   中英

Register custom protocol handler on Win8 in Delphi 7/2006 app

We need to register our app as the default protocol handler for a custom protocol dialphone:// (and sometimes for one of the default protocols).

Our code to do this broke on Win8 (how and why of breakage described by MS )

It is unclear to us:

  • How to solve this
  • What to do in code

This article in the Default Programs UI section seems to say we have to use IApplicationAssociationRegistrationUI

But it is not clear:

  • How to get our app on the list of apps
  • Is there any way to do this silently (so the user doesn't have to click around the UI)

Can someone lay out what we should do, and if possible examples in delphi?

Is there any way to do this silently (so the user doesn't have to click around the UI)

MSDN:

The file type and protocol association model has changed in Windows 8. Apps are no longer able to programmatically set themselves as the default handler for a file type or protocol. Instead, now the user always controls what the default handler is for a file type or protocol.

Some help links:

http://borland.newsgroups.archived.at/public.delphi.nativeapi.win32/200611/0611216695.html

I think you have some error on your register entries, so its good to post it if you can.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM