Jump to content











Photo
* * * * * 2 votes

[tool] reg2WBS


  • This topic is locked This topic is locked
324 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 04 January 2007 - 01:12 PM

I sometimes tried the similar tool NightMan developed.
For my purposes in some aspects it was not sufficient.
Therefore I wrote my own tool in Delphi.

Main advantages:
  • works with Unicode .reg files made by XP regedit.exe
  • accepts a list of input files
  • processes .reg files exportet from RegEditWB (Already containing WB-Software etc)
  • core function is a separate Unit which can e.g. be built directly into WinBuilder

If you see old syntax and screenshot, please click 'Refresh' on your browser!

Syntax

There exists a GUI as wrapper for the command line version

Remarks:

reg2WBS does not resolve HKU entries.
Use HKCU instead.Posted Image

EDIT: Solved since version 1.3.0


Peter

You can download always the latest version at http://nativeex.exec.../reg2WBSprg.zip
And here you can see the latest version number

EDIT: Since Unicode support: The last Non-Unicode version you can download here: http://nativeex.boot...BSprg_3.4.4.zip

#2 pscEx

pscEx

    Platinum Member

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

Posted 05 January 2007 - 04:07 PM

Under the link of the first post I uploaded a new version:
  • added -sft, -sys and -dfl switch to filter hives
  • corrected some logic with quotes and double backslashes inside data
  • output lines which could not be resolved
  • (first post core function and syntax updated)
Peter

#3 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 06 January 2007 - 12:36 PM

Thanks for this great tool! :P

#4 pscEx

pscEx

    Platinum Member

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

Posted 12 January 2007 - 11:58 AM

There is a new version downloadble under the above link.

I fixed bugs with 0x2 and 0x7.

Peter

#5 pscEx

pscEx

    Platinum Member

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

Posted 03 August 2007 - 03:49 PM

There is a new version 1.0.3 downloadble under the above link.

The new switch -E causes:

Strings starting with:
  • Path of %SystemRoot%
  • Path of %ProgramFiles%
  • Letter of %SystemDrive%
Are replaced by these variable names, and the registry type is changed from 0x1 to 0x2.

Peter

#6 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 03 August 2007 - 09:57 PM

Hi Peter

here's some bugs to fix

[HKEY_CURRENT_USER\New Key #1]

"New Value #1"=-
this means that the value to be deleted from the registry, note that dash isn't surrounded by quots

[-HKEY_CURRENT_USER\New Key #2]
same thing for this key


special chars plus # char followed by (1,2,3,4) need to be escaped


--

Great tool Thanks :yahoo:

#7 pscEx

pscEx

    Platinum Member

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

Posted 04 August 2007 - 09:23 AM

Hi Peter

here's some bugs to fix

[HKEY_CURRENT_USER\New Key #1]

 "New Value #1"=-
this means that the value to be deleted from the registry, note that dash isn't surrounded by quots

[-HKEY_CURRENT_USER\New Key #2]
same thing for this key


special chars plus # char followed by (1,2,3,4) need to be escaped


--

Great tool Thanks :yahoo:

I do not understand this.
An exported *.reg file only contains 'Adds', never 'Deletes'

Peter

#8 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 04 August 2007 - 10:49 AM

I do not understand this.
An exported *.reg file only contains 'Adds', never 'Deletes'

Peter



h7se is right. test it yourshelf

#9 pscEx

pscEx

    Platinum Member

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

Posted 04 August 2007 - 11:02 AM

h7se is right. test it yourshelf

@h7Se or @smiley

Please post the .reg to test.

Thanks

Peter

#10 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 04 August 2007 - 11:50 AM

@h7Se or @smiley

Please post the .reg to test.

Thanks

Peter



#11 pscEx

pscEx

    Platinum Member

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

Posted 04 August 2007 - 12:06 PM

Thanks for the files!

Maybe it is the weekend, or the warm weather.
But I still do not understand how such files can be exported from regedit.

The registry has contents, and exporting contents never causes a 'delete' entry.

????

Peter

#12 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 04 August 2007 - 12:18 PM

The registry has contents, and exporting contents never causes a 'delete' entry.

????

Peter


You are right, but someone could doit manually

never

maybe be this is why you shouldn't worry about possible sideeffects, just doing it won't hurt

#13 pscEx

pscEx

    Platinum Member

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

Posted 04 August 2007 - 12:59 PM

You are right, but someone could doit manually


maybe be this is why you shouldn't worry about possible sideeffects, just doing it won't hurt


Thanks!
So it is not an essential, but a 'nice to have'.

I'll try to include.

Peter

#14 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 09 August 2007 - 08:07 PM

Hi Peter :)

I'm thank you for nice software :yahoo:

but, how do I use the reg2WBSprg with Texpad :)

one example ! reg2WBSprg -i 1.reg -o 1.script

Texpad 5.3 http://www.textpad.c....html#downloads


wb2.jpg


@qnx

#15 pscEx

pscEx

    Platinum Member

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

Posted 10 August 2007 - 06:49 AM

but, how do I use the reg2WBSprg with Texpad :yahoo:

Do this:
textpad_1.gif

Then, with the .reg on screen, menu: Tools >> External Tools >> Reg2WBSPrg

Generates the script snippet in the result window.

Peter

#16 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 10 August 2007 - 03:38 PM

Do this:
textpad_1.gif

Then, with the .reg on screen, menu: Tools >> External Tools >> Reg2WBSPrg

Generates the script snippet in the result window.

Peter



Thank you very much for help, good luck my friend :yahoo:

#17 pscEx

pscEx

    Platinum Member

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

Posted 15 August 2007 - 07:15 AM

Following a suggestion of MedEvil, this remark:

reg2WBS does not resolve HKU entries.
Use HKCU instead.

Peter


#18 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 15 August 2007 - 10:11 AM

@Peter
Eighter the version linked to in the first post isn't the latest or you forgot to update the 'help page', as there is no mentioning of an -E switch in it.

:loleverybody:

#19 pscEx

pscEx

    Platinum Member

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

Posted 15 August 2007 - 10:24 AM

@Peter
Eighter the version linked to in the first post isn't the latest or you forgot to update the 'help page', as there is no mentioning of an -E switch in it.

:w00t:


Thanks, MedEvil :loleverybody:

I updated the first page.

Just to tell the publicity what the -E switch is doing.

It replaces an environment variable value by the symbolic variable %SystemDrive%, %SystemRoot%, %ProgramFiles%

e.g. the German "C:\Programme\xxxx" is replaced by "#$pProgramFiles#$p\xxxx" as well as the English "C:\Program Files\xxxx"
In this case the reg type is set to 0x2.

Peter

#20 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 15 August 2007 - 10:53 AM

@Peter
Am i right to assume that, if i want to use the -E switch with a reg file from a PE, i would need to modify the Environment varibles first?

:loleverybody:

#21 pscEx

pscEx

    Platinum Member

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

Posted 15 August 2007 - 11:06 AM

@Peter
Am i right to assume that, if i want to use the -E switch with a reg file from a PE, i would need to modify the Environment varibles first?

:loleverybody:


No and yes!

If a .reg entry made on your system, contains a path wich starts with your local values of one of the three EnvVars, than this value is replaced by the %...%

If you have a German system, you cannot use -e with English .regs

Peter

#22 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 15 August 2007 - 11:50 AM

No and yes!

If a .reg entry made on your system, contains a path wich starts with your local values of one of the three EnvVars, than this value is replaced by the %...%

If you have a German system, you cannot use -e with English .regs

Peter

I was more getting at the point that a local install is usually C: while PE is usually X:, but i guess the same rules apply as for your german/english example.

:loleverybody:

#23 pscEx

pscEx

    Platinum Member

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

Posted 15 August 2007 - 12:02 PM

I was more getting at the point that a local install is usually C: while PE is usually X:, but i guess the same rules apply as for your german/english example.

:loleverybody:

Crazy idea:
What about to perform reg2WBS in the PE machine?

Peter

#24 pscEx

pscEx

    Platinum Member

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

Posted 17 August 2007 - 10:21 AM

I delivered a new version with a 'MedEvil special'.

It now can work with non-regedit *.reg files containing hex(02):

Peter

#25 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 17 August 2007 - 10:54 AM

Peter how smart is your -E switch? :w00t: Will it also work on hex keys?

:loleverybody:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users