• Checks if the application is being started by Squirrel installer

    Examines command line arguments to determine if the application was launched by the Squirrel installer and handles any installation events. This function should be called at the very beginning of app startup.

    Returns boolean

    True if a Squirrel event was handled and the app should exit

    export function checkForSquirrelEvents(): boolean {
    if (process.platform !== "win32") {
    return false;
    }

    const squirrelCommand = process.argv[1];
    if (squirrelCommand && handleSquirrelEvent(squirrelCommand)) {
    // Exit application if we're handling a Squirrel event
    return true;
    }

    return false;
    }