I have set the “app.setLoginItemSettings” to auto-start my app when Windows starts.
But I found that the app would auto-start when the user still on Windows login screen (It matches the description of the document page. https://www.electronjs.org/docs/api/app#appsetloginitemsettingssettings-macos-windows).
I noticed that “app.setLoginItemSettings” setting puts executable to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
I also try to put my executable to %appdata%\Microsoft\Windows\Start Menu\Programs\Startup.
Unfortunately, my app would do something related to DWM and some drivers and errors happened.
SO, MY QUESTION IS
Are there any ways that could auto-start my electron app after the user login into Windows?