Topic: 0x3 registry entry  (Read 3569 times)

0x3 registry entry
« on: June 22, 2012, 03:55:22 PM »

JonF

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2011
  • Posts: 291
OK, why do these lines:

Code: [Select]
%LastUpdateDateTime%=7d,33,ba,5a,0f,0f,e4,40
   .
   .
   .
reg_add,0x3,"%reg%\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome","LastUpdateDateTime",%LastUpdateDateTime%

always generate this error:

 RegWrite - Type: [0x3] Section [HKLM\wb-hive\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome] Key [LastUpdateDateTime]: 7d,33,ba,5a,0f,0f,e4,40

and not create the key?

Re: 0x3 registry entry
« Reply #1 on: June 22, 2012, 10:24:11 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
New Key in spybotsd-2.0.8-beta6 :smile:
Quote
[HKEY_LOCAL_MACHINE\SOFTWARE\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome]
"LastUpdateDateTime"=hex:22,49,e8,0f,60,0f,e4,40
Registry converted with RegCpe  :wink:

Code: [Select]
[Variables]
%LastUpdateDateTime%=7d,33,ba,5a,0f,0f,e4,40

[Process]
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,"Tmp_Software\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome",LastUpdate,"23/06/2012 00:02:47"
RegWrite,HKLM,0x3,"Tmp_Software\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome",LastUpdateDateTime,22,49,e8,0f,60,0f,e4,40
System,FILEREDIRECT,OFF
ShellExecute,Open,regedit.exe,""
System,FILEREDIRECT,ON
RegWrite,HKLM,0x3,"Tmp_Software\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome",LastUpdateDateTime,%LastUpdateDateTime%
System,FILEREDIRECT,OFF
ShellExecute,Open,regedit.exe,""
System,FILEREDIRECT,ON
RegHiveUnLoad,Tmp_Software


I have not your problem, the key is well writing at home !

:cheers:
« Last Edit: June 22, 2012, 10:31:23 PM by ChrisR »

Re: 0x3 registry entry
« Reply #2 on: June 23, 2012, 12:38:49 AM »

JonF

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2011
  • Posts: 291
What version of WinBuilder?

Beta 6 still isn't amenable to build-time updates :sad:

Re: 0x3 registry entry
« Reply #3 on: June 23, 2012, 08:20:37 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
What version of WinBuilder?
Yep Wb82

Here a workaround that Lancelot had given me earlier. Works with binary data in Wb77, 80 and 82
Code: [Select]
[Variables]
%LastUpdateDateTime%=7d,33,ba,5a,0f,0f,e4,40

[Process]
RegHiveLoad,Tmp_Software,%RegSoftware%
// workaround Wb77 Wb80 for regread-regwrite with binary data
If,ExistFile,%ProjectTemp%\workaround.txt,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\workaround.txt#$q"
If,ExistFile,%ProjectTemp%\workaround.txt,Echo,"FILE NOT DELETED",WARN
Set,%w%,%ProjectTemp%\workaround.txt
FileCreateBlank,%w%
TxtAddline,%w%,[WriteReg],Append
TxtAddline,%w%,"RegWrite,HKLM,0x3,"Tmp_Software\Safer Networking Limited\Spybot - Search & Destroy 2\Welcome",LastUpdateDateTime,%LastUpdateDateTime%",Append
Run,%w%,WriteReg
If,ExistFile,%ProjectTemp%\workaround.txt,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\workaround.txt#$q"
System,FILEREDIRECT,OFF
ShellExecute,Open,regedit.exe,""
System,FILEREDIRECT,ON
RegHiveUnLoad,Tmp_Software


:cheers:

Re: 0x3 registry entry
« Reply #4 on: June 26, 2012, 04:00:49 PM »

JonF

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2011
  • Posts: 291
Humph, that's ugly!  And it doesn't work on my Win7 x64 system with UAC off (after removing the extra quot mark). It leaves Registry Editor open and WB stuck until I close Registry Editor.

Re: 0x3 registry entry
« Reply #5 on: June 26, 2012, 04:24:42 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
It leaves Registry Editor open and WB stuck until I close Registry Editor.
Chris added these lines for you to test if registry you desire written nicely

System,FILEREDIRECT,OFF
ShellExecute,Open,regedit.exe,""
System,FILEREDIRECT,ON

just remove lines....

and if codes doesn't work, I can not know, I do not have hostw7 and I do not know if idiots create new sabotages to projects/plugings around,
..... another workaround would be found if things not good.... maybe you can ?
winbuilder other name is workaround builder  (workaround batcher)  :lol: :thumbsup:

Re: 0x3 registry entry
« Reply #6 on: June 26, 2012, 04:38:08 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
yep, the 3 lines are here only for testing  :wink:

For me this workaround works on my win7 x64, UAC off.
I use it in w7pese for TimeZoneInformation,DaylightStart and StandardStart, without returns.

If you find better or easier, I take it  :smile:

 

Powered by EzPortal