From b0f879c294b7a2183880078c83b95b0a84f250fa Mon Sep 17 00:00:00 2001 From: liamcottle Date: Fri, 16 Aug 2024 21:33:09 +1200 Subject: [PATCH] tell user if they need to install c++ redist for windows --- electron/main.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/electron/main.js b/electron/main.js index 31b2d8c..d389e24 100644 --- a/electron/main.js +++ b/electron/main.js @@ -172,6 +172,15 @@ app.whenReady().then(async () => { return; } + // tell user that Visual C++ redistributable needs to be installed on Windows + if(code === 3221225781 && process.platform === "win32"){ + await dialog.showMessageBox(mainWindow, { + message: "Microsoft Visual C++ redistributable must be installed to run this application.", + }); + quit(); + return; + } + // show crash log const stdout = stdoutLines.join(""); const stderr = stderrLines.join("");