Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Can't add registry key

$
0
0

Hi,

 

I am trying to add a registry key with using RegWrite but it is not doing it. I also added the #RequireAdmin at the top of the script. Only if I run the reg file manually, the key is added.

 

Here is the key.

 

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","test","REG_SZ","C:\Windows\test.bmp")

 

 

 

 

Please advise.

 

 

Thanks


Viewing all articles
Browse latest Browse all 12506

Trending Articles