Jump to content

Recommended Posts

Posted (edited)

Hi,

I want to delete a "main key" in the registry, so I tried to use

RegDelete ( "HKLM\SOFTWARE\aaaa") but it didn't work.... returns=0

I looked in the "Autoit help"

RegDelete ("HKLM\SOFTWARE\aaaa","") .............but it didn't work.... returns=0

and

RegRead("HKLM\SOFTWARE\aaaa","") didn' work, too. error = -1

Edited by isolation
  • Developers
Posted

RegDelete ( "HKLM\SOFTWARE\aaaa") but it didn't work.... returns=0

Works fine here.

You are sure you have the rights to do this?

What is the returncode and @error returned?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

oh sorry

I've done a mistake

I intended to use this func

Func _Rd($main,$val)

return String(RegDelete($main,$val))

Endfunc

RegDelete ( "HKLM\SOFTWARE\aaaa") seems to work

but when $val="" doesn't work

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
×
×
  • Create New...