Archive: "WriteRegBIN" with empty values ?


"WriteRegBIN" with empty values ?
Hi,
I'm trying to create an improved installer of an existing program using NDIS. Upon install the application will create a "REG_BINARY"-type key in the registry without setting a value for it. In Regedit it looks like this

NameOfValue (zero-length binary value)

and if I export it to a .reg-file it's like this

"NameOfValue"=hex:

The application seems to use this on its first run for some auto-detection-routines. I've already tried a lot to mimic this, but nothing worked so far. :(

(Here are some things I have already tried:
WriteRegBIN HKLM "Path" "NameOfValue" ""
WriteRegSTR HKLM "Path" "NameOfValue" ""
WriteRegDWORD HKLM "Path" "NameOfValue" "0x0")


This one works fine for me:

WriteRegBIN HKLM "Path" "NameOfValue" ""

RegEdit shows (zero-length binary value).


This is weird, "now" it worked for me as well. Probably it got mixed up with some other erroneous settings and thus I sorted it out.
Anyway, thx a lot for your help ! :)