Sign in to follow this  
Followers 0
dexter23

Delete registry value

5 posts in this topic

#1 ·  Posted (edited)

Hi,

I want to delete a registry value like this:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls]
"G:\\Program Files\\Common Files\\Nero\\DSFilter\\NeAudCD.ax"=dword:00000001

I tried with:

$path = @CommonFilesDir & "\Nero\DSFilter"
RegDelete ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls", $path & "\NeAudCD.ax")

but didn't work. What is wrong?

Edited by dexter23

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try this to make sure @CommonFilesDir is returning the right path

MsgBox(0, "", @CommonFilesDir)
Edited by LongBowNZ

Share this post


Link to post
Share on other sites

To delete a reg value the syntax of the command is:

RegDelete ( "keyname" [, "valuename"] )

Go into the registry and get the correct value name. What you have is not correct.

Hi,

I want to delete a registry value like this:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls]
"G:\\Program Files\\Common Files\\Nero\\DSFilter\\NeAudCD.ax"=dword:00000001

I tried with:

$path = @CommonFilesDir & "\Nero\DSFilter"
RegDelete ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls", $path & "\NeAudCD.ax")

but didn't work. What is wrong?

Share this post


Link to post
Share on other sites

lol I didn't even check if regdelete was the problem

Share this post


Link to post
Share on other sites

I don't know which was the problem. It's working now.

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