Jump to content











Photo

RegWrite command


  • Please log in to reply
No replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 17 February 2010 - 07:10 PM

These descriptions apply to WinBuilder 080 and later.

Maybe for previous versions they do not work, or bring unpredictable results.

Definition:
The word "Empty" here contains two different conditions
  • The item is not defined
  • The item is defined, but contains no data
Sometimes under Regedit you can see something like "Value not set". That is case #1
If you see "Binary data of length 0" or similar, you have case #2.

To create an entry of #1:
  • Registry key:
    RegWrite,HKLM,<typ>,<Key>

To create an entry of #2
  • Registry key's Default Value:
    RegWrite,HKLM,<typ>,<Key>,,
  • Registry Value:
    RegWrite,HKLM,<typ>,<Key>,<Value>,
If you use "RegWrite,HKLM,<typ>,<Key>", in Regedit.exe you will always see REG_SZ as type.
If the Default value is not set, Regedit cannot decide for the type. The type is stored with the default value.


BTW: If somebody wants to translate this short tutorial into English, or wants to change something, Please post here. But please EVERYTIME the complete post, no "change suggestions"!

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users