Sign in to follow this  
Followers 0
joelson

help write this value in registry

8 posts in this topic

#1 ·  Posted (edited)

[HKEY_CLASSES_ROOTCLSID{031E4825-7B94-4dc3-B131-E946B44C8DD5}ShellFolder]
"Attributes"=dword:B090010D

obs: i have total permission in this key

i try RegWrite, but unsuccessfully

thanks any help!

Edited by joelson

Share this post


Link to post
Share on other sites



RegWrite("HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder","Attributes","REG_DWORD",0xB090010D)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

test @error code after RegWrite

edit1: do you have 64bit OS?

edit2: try to use 2962227469 instead of 0xB090010D

edit3: try if RegRead of the same key works

Edited by Zedna

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

RegWrite("HKEY_CLASSES_ROOTCLSID{031E4825-7B94-4dc3-B131-E946B44C8DD5}ShellFolder","Attributes","REG_DWORD",0xB090010D)
if @error Then MsgBox(16,"",@error)

no errors

windows sevem ultimate 32 bits

Edited by joelson

Share this post


Link to post
Share on other sites

How did you determine you didn't succeed? Try logging off, then log back in. Read the registry value then.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

code is working now, excuse-me inconvenience, was something in my pc

>complete code

remove iten Windows 7 Explorer's Left-Side Navigation Pane

my setup call this

If $CmdLine[0] = 0 Then Exit(1)
if $CmdLine[1] = "instalar" Then
  instalar()
ElseIf $CmdLine[1] = "desinstalar" Then
   desinstalar()
   EndIf
Func instalar()
RegWrite("HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder","Attributes","REG_DWORD",0xB090010D)
RegWrite("HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder","Attributes","REG_DWORD",0xB094010C)
RegWrite('HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder',"Attributes","REG_DWORD",0xb0940064)
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder',"Attributes","REG_DWORD",0xB090010D)
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder',"Attributes","REG_DWORD",0xB094010C)
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder',"Attributes","REG_DWORD",0xb0940064)
EndFunc
Func desinstalar()
RegWrite('HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder',"Attributes","REG_DWORD",0xb080010d);BIBLIOTECA
RegWrite('HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder',"Attributes","REG_DWORD",0xb084010c);USER GROUP
RegWrite('HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder',"Attributes","REG_DWORD",0xb0040064);REDE
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder',"Attributes","REG_DWORD",0xb080010d);BIBLIOTECA
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder',"Attributes","REG_DWORD",0xb084010c);USER GROUP
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder',"Attributes","REG_DWORD",0xb0040064);REDE
EndFunc

excuse-me,

very thanks all

Edited by joelson

Share this post


Link to post
Share on other sites

How do I write 2 byte binary value to Windows Registry? Everything I have tried gets 4 byte values.

AutoIT version v3.3.8.1, Windows 7 64 bit.

What I want to get is the decimal value 10812 (0x2a3c) in the Registry so that REGEDIT shows the value as:

ID REG_BINARY 3c 2a

The closest I get is

ID REG_BINARY 3c 2a 00 00

Here is a code snippet:

RegWrite('HKLMSoftwareGarminMapSourceFamilies' & $MapsetName, "ID", "REG_BINARY", 0x2a3c)

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