dsvpcsupport Posted October 14, 2008 Posted October 14, 2008 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
thepip3r Posted October 14, 2008 Posted October 14, 2008 (edited) assign them to a variable and/or check @error to see why it's failing:http://www.autoitscript.com/autoit3/docs/f...ns/RegWrite.htmSuccess: 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 October 14, 2008 by thepip3r My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume
dsvpcsupport Posted October 14, 2008 Author Posted October 14, 2008 assign them to a variable and/or check @error to see why it's failing:http://www.autoitscript.com/autoit3/docs/f...ns/RegWrite.htmVery 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 .....
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