[DUA] Binary data

  • Thread starter Thread starter Wouter Roosenburg
  • Start date Start date
W

Wouter Roosenburg

Hi all,

Somehow, I am getting errors when I am trying to insert a regkey with DUA
which contains binary data. DUSC.exe says:

"The translation from text to binary failed"

From the MSDN help it says:

Registry values of type binary need to be entered as an array of bytes. The
Size parameter should specify the number of elements in the array. The
binary data must be entered comma delimited with each element represented as
a decimal value.

I've tried everything, but I can't figure out the exact correct syntax. Can
somebody point me to an example with the correct format?

This is my key BTW:

11,0,2147483650,,SYSTEM\CurrentControlSet\Control\Nls\MUILanguages\RC\rtcdll
..dll,,000500010a280000,3,,{0,1,2,3,4,5,6,7} //array is test value


Greetings,

Wouter
 
you have to enter the length of the binary data...

e.g.
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentControlSet\SampleKey,,SampleV
alue,DAREG_BINARY,
LENGTH,
Hello World


best regards,
mario
 
ah thx.

(The doc says it was optional, but with binary it's indeed compulsary)
 
Mario said:
you have to enter the length of the binary data...

e.g.
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentControlSet\SampleKey,,SampleV
alue,DAREG_BINARY,
LENGTH,
Hello World


best regards,
mario

mario and Wouter:

I am applying for this Q835732 patch for windows xp embedded system
using DUA, Could you guys help me for the Binary value setting up at
my script?

HKLM\SYSTEM\CurrentControlSet\Control\Nls\MUILanguages\RC\rtcdll.dll
Value name: 000500010a280000
Type: Reg_binary
Value: 69f34d42edf3a37f29cb6ab7f7dda08e

I did something like this at my script:

....
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentControlSet\Control\Nls\MUILanguages\RC\rtcdll.dll,,000500010a280000,DAREG_BINARY,16{69,f3,4d,42,ed,f3,a3,7f,29,cb,6a,b7,f7,dd,a0,8e}
....

It does not work.

Thank you for your help!

Gary
 
Here you go m8:

REGSETVALUE,32768,2147483650,,SYSTEM\CurrentControlSet\Control\Nls\MUILangua
ges\RC\rtcdll.dll,,000500010a280000,3,16,105,243,77,66,237,243,163,127,41,20
3,106,183,247,221,160,142

Syntax:
After the ,3 (stands for binary value) you MUST specify the length (in
this case, 16)

Then you must convert the hex numbers to decimal numbers, for example
the first 69 in hex is 105 in decimal, and so on and so on :)

Wouter
 
Thanks a lot Wouter!
Gary

Wouter Roosenburg said:
Here you go m8:

REGSETVALUE,32768,2147483650,,SYSTEM\CurrentControlSet\Control\Nls\MUILangua
ges\RC\rtcdll.dll,,000500010a280000,3,16,105,243,77,66,237,243,163,127,41,20
3,106,183,247,221,160,142

Syntax:
After the ,3 (stands for binary value) you MUST specify the length (in
this case, 16)

Then you must convert the hex numbers to decimal numbers, for example
the first 69 in hex is 105 in decimal, and so on and so on :)

Wouter
 
Back
Top