dexter23 Posted June 18, 2008 Posted June 18, 2008 (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 June 18, 2008 by dexter23
LongBowNZ Posted June 18, 2008 Posted June 18, 2008 (edited) Try this to make sure @CommonFilesDir is returning the right path MsgBox(0, "", @CommonFilesDir) Edited June 18, 2008 by LongBowNZ
notta Posted June 18, 2008 Posted June 18, 2008 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?
LongBowNZ Posted June 18, 2008 Posted June 18, 2008 lol I didn't even check if regdelete was the problem
dexter23 Posted June 18, 2008 Author Posted June 18, 2008 I don't know which was the problem. It's working now.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now