#[solved] Startup Launch settings on Windows

4 messages · Page 1 of 1 (latest)

wild ingot
#

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 a Update.exe file so I think it should be fine, but I'm not sure.

Control your application's event lifecycle.

#

Startup Launch settings on Windows

simple spindle
#

idk but, in my case i am using electron-updater package

wild ingot
#

it ended up working without any changes, thanks