Jump to content

Regwrite DWORD entries not working


Recommended Posts

In my code, the REG_SZ work but the DWORD are not,

RegWrite("HKEY_LOCAL_MACHINE\Software\Neupower\NXPowerLite\3.0","Registered Name", "REG_SZ", "xxxxx")

RegWrite("HKEY_LOCAL_MACHINE\Software\Neupower\NXPowerLite\3.0","Registered Code", "REG_SZ", "xxxxxxxxxxxxxxxxxxxxxxx")

RegWrite("HKEY_LOCAL_MACHINE\Software\Neupower\NXPowerLite\3.0","Full licence agreed", "REG_DWORD", "1")

RegWrite("HKEY_LOCAL_MACHINE\Software\Neupower\NXPowerLite\3.0","Outlook Optimize", "REG_DWORD", "1")

After install in the registry only the REG_SZ (first two) entries appear.

Any idea ??

Many thanks for any help

Link to comment
Share on other sites

assign them to a variable and/or check @error to see why it's failing:

http://www.autoitscript.com/autoit3/docs/f...ns/RegWrite.htm

Success: Returns 1.

Failure: Returns 0 if error writing registry key or value.

@error can be set to following values :

1 if unable to open requested key

2 if unable to open requested main key

3 if unable to remote connect to the registry

-1 if unable to open requested value

-2 if value type not supported

Edited by thepip3r

My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume

Link to comment
Share on other sites

assign them to a variable and/or check @error to see why it's failing:

http://www.autoitscript.com/autoit3/docs/f...ns/RegWrite.htm

Very weird - both line return 1 - so successful, but looking in the registry the DWORD entries aren't there.

Even weirder when logged in as an admin account, get error result of 0 !! Either way no entries appear in the registry.

Help .....

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...