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
Source
exportfunctioncheckForSquirrelEvents(): boolean { if (process.platform !== "win32") { returnfalse; }
constsquirrelCommand = process.argv[1]; if (squirrelCommand && handleSquirrelEvent(squirrelCommand)) { // Exit application if we're handling a Squirrel event returntrue; }
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.