[SOLVED] Automatic startup of an unwanted application
Published: February 26, 2023 - 3:08 PM
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?).
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?).