Jump to content











Photo
* * * * * 2 votes

[tool] reg2WBS


  • This topic is locked This topic is locked
324 replies to this topic

#51 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 23 March 2008 - 08:19 PM

Please test

I would like, but link in first post is empty (file not found)...

#52 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 27 May 2008 - 08:34 PM

I don't need textpad with reg2WBS.exe ;)
Super idea for new api can choose with Api Style Checkbox.

Thanks a lot this good software :thumbup:


@Nuno Brito

Can the reg2WBS.exe be added to the WinBuilder like part of Tools\convert ?

#53 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 31 May 2008 - 03:34 PM

If you already have all of the required functionality, it is the best, if reg2WBS disappears.
If reg2WBS can fulfill some tasks not covered yet by makeScript, it should remain and makeScript should use reg2WBS.

Peter,

May I just say that your reg2WBS is one of the most important tools we have and you shouldn't even think of it disappearing! Only think of how to make the best even better! Like having the app open centered on the desktop! :thumbup: or adding version numbers to the header! :thumbup:

Seriously, for a long time I didn't use this great tool because their was a horrible bug that output HKCU keys as HKU and there was no way to tell from the application or even the file that it had been updated. Version 1.0.0.0 :thumbup: Just tried it again recently (out of desperation) and works beautifully! Thank you for this awesome tool and, please, keep developing and making even better! ;)

:thumbup:

#54 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 20 June 2008 - 01:55 PM

I love Reg2WBS .. except it gets the hives wrong for the new API and I always have to look up the correct hive.

Input:

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\UnlockerShellExtension]@="{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\UnlockerShellExtension]@="{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shellex\ContextMenuHandlers\UnlockerShellExtension]@="{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]"{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"="UnlockerShellExtension"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}]@="UnlockerShellExtension"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}\InProcServer32]@="C:\\Program Files\\Unlocker\\UnlockerCOM.dll""ThreadingModel"="Apartment"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Unlocker.exe]@="C:\\Program Files\\Unlocker\\Unlocker.exe"
Output, with "API Style" checked:
Hive_Load,HKCUreg_add,0x1,"%reg%\Classes\Folder\shellex\ContextMenuHandlers\UnlockerShellExtension",,"{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"reg_add,0x1,"%reg%\Classes\CLSID\UnlockerShellExtension",,"{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"reg_add,0x1,"%reg%\Classes\AllFilesystemObjects\shellex\ContextMenuHandlers\UnlockerShellExtension",,"{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}"reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved","{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}","UnlockerShellExtension"reg_add,0x1,"%reg%\Classes\CLSID\{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}",,"UnlockerShellExtension"reg_add,0x2,"%reg%\Classes\CLSID\{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}\InProcServer32",,"#$pProgramFiles#$p\Unlocker\UnlockerCOM.dll"reg_add,0x1,"%reg%\Classes\CLSID\{DDE4BEEB-DDE6-48fd-8EB5-035C09923F83}\InProcServer32","ThreadingModel","Apartment"reg_add,0x2,"%reg%\Microsoft\Windows\CurrentVersion\App Paths\Unlocker.exe",,"#$pProgramFiles#$p\Unlocker\Unlocker.exe"Hive_Unload,HKCU
Er, HKCU is not the correct hive, HKU is.

HKCU -> HKCU
HKU -> HKLM\Software (who came up with that one!)
HKLM -> HKLM\System

#55 pscEx

pscEx

    Platinum Member

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

Posted 20 June 2008 - 02:20 PM

I love Reg2WBS .. except it gets the hives wrong for the new API and I always have to look up the correct hive.

HKCU -> HKCU
HKU -> HKLM\Software (who came up with that one!)
HKLM -> HKLM\System

The new api also accepts more 'logical' names User, Default, Machine, System.

I'll change the app to use them.

Peter

BTW: Can you please break the long lines or use codebox to hold the topic readable?

#56 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 June 2008 - 03:13 PM

The new api also accepts more 'logical' names User, Default, Machine, System.

I'll change the app to use them.

Peter

BTW: Can you please break the long lines or use codebox to hold the topic readable?

Will be looking forward to the new update! Thanks Peter :)

#57 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 20 June 2008 - 03:24 PM

BTW: Can you please break the long lines or use codebox to hold the topic readable?

OK, sorry. Opera does not have a problem with the width, it wraps the code lines, so I did not realize there is a problem in inferior browsers Posted Image.

#58 Augusto

Augusto

    Newbie

  • Members
  • 17 posts
  •  
    Dominican Republic

Posted 20 June 2008 - 10:19 PM

Just suggest you to add a checkbox for convert #$pProgramFiles#$p to %PE_Program%
Because in VistaPE :
%PE_Programs%=#$pCDDrive#$p\Programs
or %PE_Programs%=#$pProgramFiles#$p
so the application can run in the two mode (Normal and In Ram)

Pardon to intruding and stuff but i think he wants reg files in Scripts to get the correct path inside the compilation because Vistape can make program references in the registry to two diferent places "CD drive programs " and "Ram Drive program files" hence #$pCDDrive#$p\Programs and #$pProgramFiles#$p but %PE_Program% variable covers them. I think he wants some option to Change #$pProgramFiles#$p for PE_Program so we can have the same SCRIPT usable for BOTH Cases without having to "manualy" edit the script or have "two copies" of the same items.

Sorry again if this was solved allready :)

#59 pscEx

pscEx

    Platinum Member

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

Posted 18 October 2008 - 01:08 PM

Version 1.2.3 is available (Link in first post)

I fixed a bug reported here

The app crashed with a single root key like [HKEY_CLASSES_ROOT]
Reason: Reg2WBS could not decide to which WinBuilder Hive this key should be written.

Now an message about that is written at the end of the script.

Peter

#60 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 18 October 2008 - 06:22 PM

Version 1.2.3 is available (Link in first post)

I fixed a bug reported here

The app crashed with a single root key like [HKEY_CLASSES_ROOT]
Reason: Reg2WBS could not decide to which WinBuilder Hive this key should be written.

Now an message about that is written at the end of the script.

Peter

:confused1: - Thank you Peter! I love this little gem of yours and I'm glad to see it further improved.

:cheers:

#61 pscEx

pscEx

    Platinum Member

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

Posted 20 October 2008 - 05:22 PM

I think he wants some option to Change #$pProgramFiles#$p for PE_Program so we can have the same SCRIPT usable for BOTH Cases without having to "manualy" edit the script or have "two copies" of the same items.

Sorry, sometimes I'm a bit slow.

I made a new version 1.2.4 wich covers that (link in first post).
reg2wbs2.gif
reg2WBS1.gif

Please test and report.

Peter

EDIT:
Maybe I revove the -P / %PE_Program% switch again.
API style REQUIRES that!

#62 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 October 2008 - 07:29 PM

Link on first post is bad (last few hours)

Remarks:

reg2WBS does not resolve HKU entries.
Use HKCU instead.

Thought this was resolved (it is on the version I'm using), should be removed from post.

#63 pscEx

pscEx

    Platinum Member

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

Posted 20 October 2008 - 08:04 PM

Link on first post is bad (last few hours)

Sorry, small uc/lc issue (server is case sensitive!)

I fixed that

Peter

#64 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 October 2008 - 08:09 PM

Working now, thanks :confused1:

#65 pscEx

pscEx

    Platinum Member

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

Posted 20 October 2008 - 08:20 PM

I changed again to version 1.2.5

I think, output should be %PE_program% rather than #$pPE_program#$p

reg_add,0x2,"%reg%\ALWIL Software\Avast\4.0","Avast4DataFolder","%PE_Program%\Alwil Software\Avast4\DATA"


Peter

#66 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 October 2008 - 08:51 PM

I changed again to version 1.2.5

I think, output should be %PE_program% rather than #$pPE_program#$p


Peter

I agree about the escapes but why isn't it %PE_Programs% :confused1:

#67 pscEx

pscEx

    Platinum Member

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

Posted 20 October 2008 - 09:05 PM

I agree about the escapes but why isn't it %PE_Programs% :confused1:


See post v#61!

Or is that a typo?

Peter

#68 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 October 2008 - 09:27 PM

See post v#61!

Or is that a typo?

Peter

I vote for typo :confused1:

#69 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2008 - 09:08 AM

I agree about the escapes but why isn't it %PE_Programs% :confused1:

Version 1.2.6 ready for download!

Peter

#70 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 21 October 2008 - 12:33 PM

"ipc://ACE.IPC.2564/Communications" gets converted to "ip#$pSystemDrive#$p//ACE.IPC.2564/Communications"

"%SystemRoot%\Media\Schemes\Glass\Windows Ding.wav" does not get converted to "#$pSystemRoot#$p\Media\Schemes\Glass\Windows Ding.wav"

Also noticed that long hex(7) values that contain embedded 0A ( newline values ) get totally ignored i.e. the value gets deleted. However there is probably no way that this can be converted as there is no escape character for a newline character in a string.

#71 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2008 - 12:53 PM

"ipc://ACE.IPC.2564/Communications" gets converted to "ip#$pSystemDrive#$p//ACE.IPC.2564/Communications"

"%SystemRoot%\Media\Schemes\Glass\Windows Ding.wav" does not get converted to "#$pSystemRoot#$p\Media\Schemes\Glass\Windows Ding.wav"

Also noticed that long hex(7) values that contain embedded 0A ( newline values ) get totally ignored i.e. the value gets deleted. However there is probably no way that this can be converted as there is no escape character for a newline character in a string.

THanks!

Strange (and rarely occurring) issues, but reality!

I'l try to find fixes.

For the hex(0a), i cannot understand. Should work.
Can you post a line that fails?

Peter

#72 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2008 - 01:14 PM

I tried the HEX(0A) issue with a 0x3 binary entry

Input

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Appearance\Schemes]
"Windows-Standard"=hex:02,00,00,00,f4,01,00,00,01,00,00,00,10,00,00,00,10,00,\
00,00,12,00,00,00,12,00,00,00,f5,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,\
00,bc,02,00,00,00,00,00,00,00,00,00,00,54,00,61,00,68,00,6f,00,6d,00,61,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,0c,00,00,00,0c,00,00,00,f5,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,\
00,bc,02,00,00,00,00,00,00,00,00,00,00,54,00,61,00,68,00,6f,00,6d,00,61,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,12,00,00,00,12,00,00,00,f5,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,\
00,90,01,00,00,00,00,00,00,00,00,00,00,54,00,61,00,68,00,6f,00,6d,00,61,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,f5,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,00,\
00,00,00,00,00,54,00,61,00,68,00,6f,00,6d,00,61,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,f5,ff,ff,ff,00,00,\
00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,00,00,00,00,00,00,54,00,61,\
00,68,00,6f,00,6d,00,61,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,f5,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,\
00,00,90,01,00,00,00,00,00,00,00,00,00,00,54,00,61,00,68,00,6f,00,6d,00,61,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,d4,d0,c8,00,3a,6e,a5,00,0a,24,6a,00,80,80,80,00,d4,d0,c8,00,ff,ff,\
ff,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,d4,d0,c8,00,d4,d0,c8,\
00,80,80,80,00,0a,24,6a,00,ff,ff,ff,00,d4,d0,c8,00,80,80,80,00,80,80,80,00,\
00,00,00,00,d4,d0,c8,00,ff,ff,ff,00,40,40,40,00,d4,d0,c8,00,00,00,00,00,ff,\
ff,e1,00,b5,b5,b5,00,00,00,80,00,a6,ca,f0,00,c0,c0,c0,00

Result (line braks mnanually by me for readability)

Hive_Load,Default
reg_add,0x3,"%reg%\Control Panel\Appearance\Schemes","Windows-Standard","02","00","00","00","f4","01","00","00","01",
"00","00","00","10","00","00","00","10","00","00","00","12","00","00","00","12","00","00","00","f5","ff","ff","ff",
"00","00","00","00","00","00","00","00","00","00","00","00","bc","02","00","00","00","00","00","00","00","00","00",
"00","54","00","61","00","68","00","6f","00","6d","00","61","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","0c","00","00","00",
"0c","00","00","00","f5","ff","ff","ff","00","00","00","00","00","00","00","00","00","00","00","00","bc","02","00",
"00","00","00","00","00","00","00","00","00","54","00","61","00","68","00","6f","00","6d","00","61","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","12","00","00","00","12","00","00","00","f5","ff","ff","ff","00","00","00","00","00","00","00",
"00","00","00","00","00","90","01","00","00","00","00","00","00","00","00","00","00","54","00","61","00","68","00",
"6f","00","6d","00","61","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","f5","ff","ff","ff","00","00","00","00","00","00","00",
"00","00","00","00","00","90","01","00","00","00","00","00","00","00","00","00","00","54","00","61","00","68","00",
"6f","00","6d","00","61","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","f5","ff","ff","ff","00","00","00","00","00","00","00",
"00","00","00","00","00","90","01","00","00","00","00","00","00","00","00","00","00","54","00","61","00","68","00",
"6f","00","6d","00","61","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","f5","ff","ff","ff","00","00","00","00","00","00","00",
"00","00","00","00","00","90","01","00","00","00","00","00","00","00","00","00","00","54","00","61","00","68","00",
"6f","00","6d","00","61","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00","00",
"00","00","00","00","00","00","00","00","00","00","00","00","d4","d0","c8","00","3a","6e","a5","00","0a","24","6a",
"00","80","80","80","00","d4","d0","c8","00","ff","ff","ff","00","00","00","00","00","00","00","00","00","00","00",
"00","00","ff","ff","ff","00","d4","d0","c8","00","d4","d0","c8","00","80","80","80","00","0a","24","6a","00","ff",
"ff","ff","00","d4","d0","c8","00","80","80","80","00","80","80","80","00","00","00","00","00","d4","d0","c8","00",
"ff","ff","ff","00","40","40","40","00","d4","d0","c8","00","00","00","00","00","ff","ff","e1","00","b5","b5","b5",
"00","00","00","80","00","a6","ca","f0","00","c0","c0","c0","00"
Hive_Unload,Default


Unfortunatelly in my system I did not find a line break in a 0x7 (multiple strings) entry.


Peter

#73 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2008 - 02:03 PM

"ipc://ACE.IPC.2564/Communications" gets converted to "ip#$pSystemDrive#$p//ACE.IPC.2564/Communications"

"%SystemRoot%\Media\Schemes\Glass\Windows Ding.wav" does not get converted to "#$pSystemRoot#$p\Media\Schemes\Glass\Windows Ding.wav"

Both fixed

Version 1.2.7

Peter

#74 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 22 October 2008 - 03:00 AM

Here is a reg file that does not convert correctly:

http://www.paraglide...temp/bridge.zip

#75 pscEx

pscEx

    Platinum Member

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

Posted 22 October 2008 - 09:24 AM

Here is a reg file that does not convert correctly:

http://www.paraglide...temp/bridge.zip


Fixed!
Version 1.2.8

There has been an string lenght limit of 32768 bytes for one reg entry.

But your sample has a length of more than 1.2 MByte.

Inspite I have doubts:

The WB syntax for this type of registry key is:
RegWrite,HKLM,0x7,Section,Key(MultiString),value1,value2,...

It is not very probable that Winbuilder processes a value with a line break inside.

For this situation i think it will be the best

I agree and accept that this special 1 of 10.000 registry lines cannot be brought into a WinBuilder PE using the 'standard' way. I'll do a reg import


Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users