Jump to content

Regwrite not working in Vista


LVCVA
 Share

Recommended Posts

Hello,

I am fairly new to AutoIT. I am testing a script that writes information to HKLM in Vista. It works fine when running it on XP but not Vista. To simplify my testing, I am just running the following taken directly from the online Help:

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

I compiled this into an EXE and like I say, it creates the key in XP but not in Vista. I downloaded the new version of AutoIT (v3.2.8.1) lastnight and created this

What am I missing here?

Link to comment
Share on other sites

Nevermind. I just discovered #RequireAdmin and this fixed the issue. (See I told you I was new).

Hello,

I am fairly new to AutoIT. I am testing a script that writes information to HKLM in Vista. It works fine when running it on XP but not Vista. To simplify my testing, I am just running the following taken directly from the online Help:

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

I compiled this into an EXE and like I say, it creates the key in XP but not in Vista. I downloaded the new version of AutoIT (v3.2.8.1) lastnight and created this

What am I missing here?

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...