0

When i click on a custom link such as foo:\ , and there is already a registered protocol handler on windows machine, Internet explorer or Edge display a warning before allowing user to run the custom protocol handler, but if the user select to not display this warning again, the Internet explore(Edge) run the protocol handler without displaying the warning. My question is how reset my selection again and make Internet Explorer or Edge display the warning again.

yo2011
  • 971
  • 2
  • 12
  • 38

3 Answers3

2

If the name of your protocol is foo, then you can update the registry with the following:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\ProtocolExecute\foo]
"WarnOnOpen"=dword:00000001

Will enable it

and

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\ProtocolExecute\foo]
"WarnOnOpen"=dword:00000000

will disable it

Raj Rao
  • 8,872
  • 12
  • 69
  • 83
0

To add on Raj Rao answer: use instead HKEY_LOCAL_MACHINE**\SOFTWARE\Microsoft\Internet Explorer\ProtocolExecute to install your protocol for all users.

Sylvain Rodrigue
  • 4,751
  • 5
  • 53
  • 67
-1

Revert the changes triggered by overriding the protocol handler by finding the event and reverting the state changes to their defaults:

After updating the registry keys, the program should broadcast the WM_SETTINGCHANGE message with wParam = 0 and lParam pointing to the null-terminated string "Software\Clients\ClientTypeName" to notify the operating system that the default client has changed.

In HKEY_CLASSES_ROOT, revert the default data of the protocol in question.

This registry hierarchy replaces the existing mailto registry hierarchy found at HKEY_CLASSES_ROOT\mailto. The hierarchy remains the same, only the location has changed.

References

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
  • This is not answering the question at all. The question is about how to reset suppressed warning dialogs when launching a protocol handler. – KC Wong Jun 16 '17 at 03:48