Sign in to follow this  
Followers 0
himaro

RegDelete in X64 environment does not work

2 posts in this topic

#1 ·  Posted (edited)

I have arleady read this article below link.

http://www.autoitscript.com/forum/index.php?showtopic=50402

but I still can't understand why I can't del in X64 environment.

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Test", "TestKey", "REG_SZ", "Hello this is a test")

$result1 = RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Test");

MsgBox(0,"test",$result1)

RegWrite("HKLM\SOFTWARE\Wow6432nNode\Test", "TestKey", "REG_SZ", "Hello this is a test")

$result = RegDelete"HKLM\SOFTWARE\Wow6432Node\Test")

MsgBox(0,"test",$result2)

It would popout 1, then 2

Both registry write in Vista X64 bit environment, I just can't figure out why I can't del it smoothly

Bag somebody's help , please

Thank you so much

Edited by himaro

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I have arleady read this article below link.

http://www.autoitscript.com/forum/index.php?showtopic=50402

but I still can't understand why I can't del in X64 environment.

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Test", "TestKey", "REG_SZ", "Hello this is a test")

$result1 = RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Test");

MsgBox(0,"test",$result1)

RegWrite("HKLM\SOFTWARE\Wow6432nNode\Test", "TestKey", "REG_SZ", "Hello this is a test")

$result = RegDelete"HKLM\SOFTWARE\Wow6432Node\Test")

MsgBox(0,"test",$result2)

It would popout 1, then 2

Both registry write in Vista X64 bit environment, I just can't figure out why I can't del it smoothly

Bag somebody's help , please

Thank you so much

Hi,

see helpfile RegDelete:

When running on 64-bit Windows if you want to delete a key or value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64.

;-))

Stefan

Edited by 99ojo

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