I made an application in electron and packaged it with electron-build for windows. application is registered with myapp://params/ custom protocol. There is a button on my frontend to open that application. What I want is, when user clicks on a button open the application if it is installed otherwise download exe. How can I achieve this? Thank you in advance.
'otherwise download exe. ' regarding this please see this post
if you are registered custom protocol for your app and it works fine means you can use <a href="Your protocol with params"> or window.open("your protocol with params") or window.location='your protocol with params'
read more from electron docs
please see the example below (opening vscode)
<a href="vscode://"> open vscode</a>