How can i open an exe file using a button inElectron
问题 I am trying to make a button open an exe file in computer but it doesn't open and it gives me this error Uncaught ReferenceError: require is not defined at runExe (main.js:61) at HTMLButtonElement.onclick here is the code for my button <button onclick="runExe()" id="button">click</button> and i got this code form the internet and when i remove the function runExe() the exe file opens when i start the app and i want it to only open when button is clicked. here is the code to open the exe file