A bit of context:
I have a website with links to VNCs for our team to use -- those VNC URLs are formatted like this:
vnc://000.000.0.0:5901
Most of our team uses Macbooks, and MacOS handles these urls by default to open Screen Sharing. However, one of our team members uses a PC, and needs to set up a custom url protocol.
Here's what we've tried so far
Added the following using the Registry Editor:
HKEY_CLASSES_ROOT/
vnc/
(Default) "URL:vnc Protocol"
URL Protocol ""
shell/
open/
command/
(Default) "C:\Program Files\RealVNC\VNC Viewer\vncviewer.exe" "%1"
This got us 99% of the way there -- clicking on the URL opens the app 'VNC Viewer', and passes the url. However, VNC Viewer fails to open this properly, because for some reason, it tries to open "vnc://000.000.0.0:5901/" (added a trailing / character).
The error I get is:
Invalid endpoint: port not correctly specified
What do I need to do to get it to remove/filter out the trailing "/" character?
Thank you!
References
How do I register a custom URL protocol in Windows? How do I create my own URL protocol? (e.g. so://...)