Jump to content

Recommended Posts

Posted

Hi i need to change value to a DWORD into Windows registry, but the value that i must insert is expressed as hexadecimal (editing File.Reg is wrote hex:..... )

That I want realize is: Read original value of DWORD "PageSpaceControlSizer" and record the DATA on file (overwriting if already exist file) and Then replace the value with an other

After record value I replace DATA with this value

[HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer]

"PageSpaceControlSizer"=hex:3F,20,00,00,01,00,00,00,00,00,00,00,a9,03,00,00

Then when I press SHIFT-ESC HotKeySet("+{ESC}", "Default")

read from file and come back to original value of "PageSpaceControlSizer"

The problem is that when i read value. using command

$key= RegRead("HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer", "PageSpaceControlSizer")

the value of $key is: 0xfb00000001000000000000005d030000

but if i use RegWrite ( "keyname" [,"valuename" [, "type" [, value]]] )

RegWrite("HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer", "PageSpaceControlSizer, "REG_DWORD", "0x3F200000010000000000000a9030000")

proved aslo with options

REG_SZ

REG_EXPAND_SZ

REG_BINARY

and other..

and the value is not inserted correctly.

How can insert value reported into file.REG when i backup it using Regedit ?

How i'm wronging??

Thank you

  • Moderators
Posted

If, as it sounds, your replacement value is static, why not just use FileInstall to include a .reg file, and import that file after recording the original value?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

I must study how use this new function (for me).

I must change always two hexadecimal code value in the same regkey in order to have big left folder pane or return to original previously dimension of left navigation pane of Windows explorer.

(For this reason i must know the two original hexadecimal value, writing it on file)

Thanks for help

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
  • Recently Browsing   0 members

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