Windows 10 update deletes the registry Run command

0

1

A user of my app reports that the app's auto-start option stored in the Windows registry section HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run is removed each time a Windows 10 update is executed.

Is this normal because I store it in the "CurrentVersion" section? Should I store this value elsewhere or differently to make my Run entry persistent over Windows 10 updates?

Your expert input would be appreciated. Thanks!

JnLlnd

Posted 2019-10-28T21:33:00.993

Reputation: 3

1I'm sure you've setup a test case on your own environment to find out it is not happening normally, right? The user must have something on their system that does this, instead. – LPChip – 2019-10-28T21:45:09.210

1What’s more interesting, why doesn’t your application create the key if it’s missing? – Ramhound – 2019-10-28T21:55:24.963

@ramhound: simply because this setting is an option. If the key is not there, it is normally because the user does not want the app to auto-start. – JnLlnd – 2019-10-29T22:14:22.410

@JnLlnd - You can verify the setting is enabled, and create the key if it does not exist, just trying to suggest a solution to the problem you describe. – Ramhound – 2019-10-29T23:03:07.893

Answers

1

Startup registry value for current user:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

Startup registry value for all users

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]

Windows update doesn't delete those registry keys. But windows defender could be. You can check history of windows defender or any other anti virus software of your PC to check that happened.

Razi

Posted 2019-10-28T21:33:00.993

Reputation: 1

I'm using HKEY_CURRENT_USER because this key is a user-based option. Thanks @Razi for confirming that Windows update doesn't delete this registry key normally. I'll ask my user to check this if he can (I do not have access to his machine). – JnLlnd – 2019-10-29T22:20:09.070