<button id="download" OnClick='start()'>Start</button>
function start(){
const {shell} = require('electron');
shell.openItem(app.getAppPath() + '\\apps\\example.exe');
}
// In main process.
const ipcMain = require('electron').ipcMain;
// in main process, outside of app.on:
ipc.on('load-page', (event, arg) => {
mainWindow.loadURL(arg);
});
// In renderer process (web page).
const ipc = require('electron').ipcRenderer;
ipc.send('load-page', 'file://' + __dirname + '/prefs.html');