tell user if they need to install c++ redist for windows

This commit is contained in:
liamcottle
2024-08-16 21:33:09 +12:00
parent 5c49e78204
commit b0f879c294

View File

@@ -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("");