'Office protocol handler works with Office 2019, but not with Office 2016

On an Intranet web page, I have a link to an Excel document that resides on a network drive, like so:

ms-excel:ofv|u|file:///N:/folder/file.xlsx

This is an office protocol handler described here.

On computers with Office 2019 installed, the Excel document opens with the registered application (Excel) without problems; on computers with Office 2016 I get the following error:

The action couldn't be performed because Office doesn't recognize the command it was given.

I compared the registry keys at \HKEY_CLASSES_ROOT\ms-excel\ and they are basically the same (of course the path to protocolhandler.exe is different).

When I execute protocolhandler.exe on the command line on the computers with Office 2016, I always get the above error regardless of how I try to launch an Excel or Word document (e.g. ms-excel:ofv|u|file:///... or ms-word:ofv|u|http://...)

Versions of Office:

Office Professional Plus 2019 Version 1808 (Build 10382.20010 click-and-run) 64-bit

Office Professional Plus 2016 Version 16.0.5266.1000 MSO 64-bit

Is there any way to make the protocol handler work with Office 2016?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source