Page 1 of 1

[SOLVED] Automatic startup of an unwanted application

Published: February 26, 2023 - 3:08 PM
by brice73
Hello,

I created a package for installing the mLink2 software.

The installation goes smoothly, but this software also launches automatically every time a user logs in for the first time after installation. When the application is launched, the "run at startup" option is checked in its default settings.

When the software window is closed, if this option is not unchecked, the following registry key is created: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\electron.app.mLink2, which launches the application (value of the key C:\Users\Public\Programs\mLink2\mLink2.exe). Thus, the application then launches automatically every time a user logs in.

The first time the software launches automatically at login, the aforementioned key does not yet exist. I also checked the following folders:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup and
C:\Users\User_Lambda\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, but
there's no shortcut to the application in question.

So I don't know what process causes the application to launch automatically when a user logs in after installation, and if there's a way to disable this and how.

Furthermore, even if it were possible, when a user launches the application, they would still have to manually uncheck the default automatic startup option to prevent it from launching automatically on subsequent logins (I don't know if there's a way to disable this automatic startup option by default?).

Re: Automatic startup of an unwanted application

Published: March 10, 2023 - 11:38
by julien.guyonnet
Hello,
I'm trying to create a scheduled task using the wapt package that, upon login, sets the key value to empty.
Regards,
Julien

Re: Automatic startup of an unwanted application

Published: March 15, 2023 - 12:13
by dcardon
Hi Brice,

you can create a `def session_setup()` in your package to delete the registry key in question when the session starts, or a scheduled task if it reappears afterward, as Julien suggested.

Regards,

Denis