Sign in to follow this  
Followers 0
tuvi123

How to delete all values in X key name from the registry

5 posts in this topic

#1 ·  Posted (edited)

I want to delete all values in key name from the registry..

I want to keep the key, but just remove all values from it (without knowing the names of the values).

How do I do that?

also can I delete all the values that start with "s" from the key?

How do I do that?

thank you.

Edited by tuvi123

Share this post


Link to post
Share on other sites



delete the key... then create it again

It's the fastest thing I think :)


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites

Use RegEnumVal and RegRead to build a list of values, then loop through the list and delete the matching values.

If you decide to delete the values during the RegEnumVal loop, be sure to re-read the same value number after a delete so you don't risk skipping one.


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

the program generate different values after install (the name of the values are different every time)..

I want to be able to delete all values from a key without knowing the values names..

and also to be able to delete all the values (from a key) that start with X name..

Skruge- you didn't answer my questions..

torels- thank you.. but I want also to be able to delete all the values (from a key) that start with X name..

How do I do that?

thank you!

and anyone who can put a light on this, please do it.

Edited by tuvi123

Share this post


Link to post
Share on other sites

Have you looked at the help file example for RegEnumVal?

Read the help file entry, re-read my reply, and post your code here if you still have questions.


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0