Sign in to follow this  
Followers 0
Briandr

RegWrite issue

5 posts in this topic

Hi,

Below in the command window is one line from a larger autoit script. It is writing to the registry, but setting the REG_DWORD value to 1 and not 0. Without seeing the whole script does this line look correct?

RegWrite("HKCU" & $ArchType & "\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{645FF040-5081-101B-9F08-00AA002F954E}", "REG_DWORD", "0")

Thanks.

Share this post


Link to post
Share on other sites



Have you tried it?

If you're having an issue with the regwrite (as would be assumed by your title) then please explain what that issue is. But to just ask "does this look right?" makes people think you're just unwilling to test it yourself.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I thought I explained my issue was the value was being set incorrectly to a 1 as opposed to 0. Yes, I am in the middle of testing it right now.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I guess I should have been more specific. You know that it is not setting it to what you want, but have you tested setting it to anything else, to see if that works as expected?

My apologies if the first response sounded harsh; re-reading that I can see I should have proofread it first for tone ;)

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Maybe the contents of your $Archtype varible?

Have you verified the key is being written to the proper place?

Maybe try to do an export to backup your registry and then delete the key and run your script, verify that the key is being written with the wrong value.

Then of course if you do not see your key appear in the correct place, restore your registry by importing your prior backup. 

Edited by ViciousXUSMC

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