AJAX Library
In this article
To get the install URI you can call the GetProtocolInstallUri() JavaScript function. It returns URI depending on the OS it is being called.
Note that as soon as install file name is not available on macOS the GetProtocolInstallFileNames() JavaScript function is deprecated and removed from library.