You are here

How to delete a single registry key value?

3 posts / 0 new
Last post
Anonymous (not verified)
How to delete a single registry key value?

The application that I am working on has a setting to "launch at windows startup". If this settings is checked, the application will add a registry key value to:

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

My problem is that I can't find anywhere how I can remove a single registry key value. The following would remove all values from this key, which is not what I need:

[RegistryCleanUpForce]
1=HKCU\Software\Microsoft\Windows\CurrentVersion\Run

What I need is something like this, but doesn't seem to work:

[RegistryCleanUpForce]
1=HKCU\Software\Microsoft\Windows\CurrentVersion\Run=NameOfMyApplication

Does anyone know a solution for this?

John T. Haller
John T. Haller's picture
Offline
Last seen: 7 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
RegistryValueBackupDelete

I believe RegistryValueBackupDelete is designed specifically for this.

Sometimes, the impossible can become possible, if you're awesome!

Pestario (not verified)
Worked!

This did the trick. Thanks a lot!

Log in or register to post comments