I have been extensively using a custom protocol on all our internal apps to open any type of document (CAD, CAM, PDF, etc.), to open File Explorer and select a specific file, and to run other applications.
Years ago I defined one myprotocol
protocol that executes C:\Windows\System32\wscript.exe
passing the name of my VBScript and whatever argument each request has. The first argument passed to the script describe the type of action (OpenDocument
, ShowFileInFileExplorer
, ExportBOM
, etc.), the following arguments are passed to the action.
Everything worked well until last year, when wscript.exe
stopped working (see here for details). I fixed that problem by copying it to wscript2.exe
. Creating a copy is now a step in the standard configuration of all our computers and using wscript2.exe
is now the official configuration of our custom protocol. (Our anti-virus customer support couldn't find anything that interacts with wscript.exe
).
Today, after building a new computer, we found out that:
- Firefox doesn't see
wscript2.exe
. If I click on a custom protocol link, then click on the browse button and open the folder, I only see a small subset of.exe
files, which includeswscript.exe
, but doesn't includewscript2.exe
(I don't know how recent this problem is because I don't personally use FireFox). - Firefox sees
wscript.exe
, but it still doesn't work (same behavior as described in my previous post linked above) - Chrome works with
wscript2.exe
, but now it always asks for confirmation. According to this article this seems to be the new approach, and things could change again soon. Clicking on a confirmation box every time is a big no-no with my users. This would slow down many workflows that require quickly clicking hundreds of links on a page and, for example, look at a CAD application zooming to one geometry in a large drawing.
I already fixed one problem last year, I am dealing with another one now, and reading that article scares me and makes me think that more problems will arise soon.
So here is the question: is there an alternative to using custom protocols?
I am not working on a web app for public consumption. My custom protocol requires the VBScript file, the applications that the script uses and tons of network shared folders. They are only used in our internal network and the computers that use them are manually configured.