https://www.electronjs.org/docs/latest/api/app#appsetloginitemsettingssettings-macos-windows
I'm using the example code provided in the documentation here: ```js
const appFolder = path.dirname(process.execPath)
const updateExe = path.resolve(appFolder, '..', 'Update.exe')
const exeName = path.basename(process.execPath)
app.setLoginItemSettings({
openAtLogin: true,
path: updateExe,
args: [
'--processStart', "${exeName}",
'--process-start-args', '"--hidden"'
]
})```
It says that:
To work with Electron's autoUpdater on Windows, which uses Squirrel, you'll want to set the launch path to Update.exe, and pass arguments that specify your application name.
Does this mean that I have to change anything in the code above? Or is it fine as is? I checked my install folder and there is aUpdate.exefile so I think it should be fine, but I'm not sure.
Control your application's event lifecycle.