Jump to content











Photo
* * * * * 2 votes

[tool] reg2WBS


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

#151 pscEx

pscEx

    Platinum Member

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

Posted 22 February 2009 - 05:58 PM

New version 3.0.2 available. Link as in the first post.

Fixed: There have been some troubles with converting the highest level values in a *.reg.

Peter

#152 billonious

billonious

    Silver Member

  • .script developer
  • 528 posts
  • Location:greezeland
  • Interests:curiosity

Posted 22 February 2009 - 07:21 PM

happy news! :poke:

offtopic: today it is snowing here in greece, and instead of going to mountains for ski, I have to work tomorrow monday. Damned mondays.

#153 pscEx

pscEx

    Platinum Member

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

Posted 03 November 2009 - 09:57 AM

New version 3.0.3 available. Link as in the first post.

Unnecessary quotes are not written.

Peter

#154 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 November 2009 - 10:07 AM

Thanks a lot psc :lol:

now i can use less "replace" function of my notepad ;)

is it possible to have RegAddBoot lines too ;) ?

#155 pscEx

pscEx

    Platinum Member

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

Posted 03 November 2009 - 10:20 AM

How to decide whether RegAddBoot or reg_add has to be written?

Peter

#156 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 November 2009 - 11:10 AM

How to decide whether RegAddBoot or reg_add has to be written?

maybe with a limited support things can work, still user check needed :cheers: :

Giving example 1:
This registry

[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command]
@="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -requestPending -osint -url \"%1\""

with reg2WBS converted to:
Hive_Load,Software

reg_add,0x1,%reg%\Classes\FirefoxHTML\shell\open\command,,"#$qC:\Program#$sFiles\Mozilla#$sFirefox\firefox.exe#$q#$s-requestPending#$s-osint#$s-url#$s#$q#$p1#$q"

Hive_Unload,Software

lets say we have a checkbox under "For API_18 and higher" saying "RegAddBoot", and now i enabled it and click build (my imagination ;) )
1) reg2WBS checks values for 0x1 0x2 to catch C:\ D:\ E:\ , and when it catches, lets say it %possibledriveletter%
2) reg2WBS with being smart, reads %programfiles% NAME from hostos (I mean "Program Files" , not "C:\Program Files") also %systemroot% NAME from hostos (I mean "Windows" , not C:\Windows), lets call it %possiblefoldername%
ps: (I feel If reg2WBS can check a datasheet first which exists inside, and if not matched than read from hostos things would work better)

3) If %possibledriveletter%%possiblefoldername% gives sense (match) ==> than reg2WBS converts same line to:

[variables]

%programfolder%=Mozilla Firefox



[process]

RegAddBoot,HKLM,0x1,Software\Classes\FirefoxHTML\shell\open\command,,"#$q%PE_Programs%\%programfolder%\firefox.exe#$q#$s-requestPending#$s-osint#$s-url#$s#$q#$p1#$q"


This still requires user check %programfolder%, but definately makes life verrrrrrrry easier. In most conversion of HKEY_CLASSES_ROOT it will work without user fix.


example 2:
similar to example 1,
only at step 3 reg2WBS catches "%systemroot% NAME"
If this happens than reg2WBS write sth like this:
RegAddBoot,HKLM,0x1,Software\Classes\CLSID\{0B5A2C52-3EB9-470a-96E2-6C6D4570E40F}\LocalServer32,"",#$q%SystemRoot%\system32\vssvc.exe#$q
This even do not require user fix :cheers:;):)



I hope this idea gives some sense to you Peter. Besides all It will make Life of many users easier since now all RegAddBoot lines written by hand. Also it will result with more compatible scripts. Reminding an old post from JonF (where i first learned RegAddBoot)

These lines do not have to be executed while any hives are loaded. I tend to put them off by themselves, but that is not necessary.

Pedrole added RegAddBoot to the LiveXP API, so in Live XP RegAddBoot acts just like Reg_Add.



edit: slashes added, C: D: E: ===> C:\ D:\ E:\

#157 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 November 2009 - 11:30 AM

slashes edit to previous post

also a minor reminding, programfiles name can be different on hostosx64
example:
C:\Program Files
C:\Program Files (x86)
and reading hostos %programfiles% name needs a small trick to solve :cheers:.

#158 pscEx

pscEx

    Platinum Member

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

Posted 03 November 2009 - 03:33 PM

Version 3.1.0 Online
  • Added RegAddBoot support
  • Fixed bug in Environment Replacement
  • Added (x86) prog dir detection (untested)
@Lancelot: The replacement "%programfolder%=Mozilla Firefox" can be made by defining it in one of the four replacement lines and check that line.

Peter

#159 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 November 2009 - 04:06 PM

Added (x86) prog dir detection (untested)

Tested, working fine with the designed way you write.
Thanks a lot Peter.
ps: I just finished my work on livexp apps script and I am glad to say %95 of unneccasary quotes removed (took 2 days :cheers:) ;)

Good luck with your new project. ;)

#160 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 November 2009 - 08:14 PM

Somehow your program eighter doesn't like me or hex values.
Why always the hex values? :thumbup:

RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......

Why is there a hex(3): string in the hex code?

Original:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VPCMap\Security]
"Security"=hex(3):01,00,14,80,90,00,00,00,9C,00,00,00,14,00,00,00,30,00,00,00,02,\........

Created with Regshot.

:thumbup:

#161 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 November 2009 - 08:24 PM

Arrgn. I found a line that was silently droped. Do i have to check the whole outputfile for stuff like that?

original:

[HKEY_USERS\.DEFAULT\Software\Connectix]

[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC]

[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC\4.0]


output:

RegHiveLoad,"WB-Default","%target_sys%\config\default"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix\Virtual PC"
RegHiveUnLoad,"WB-Default"


:thumbup:

#162 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 November 2009 - 08:33 PM

And Error number 3!
In WB-Setup C:\Windows gets replaced with #$pSystemRoot#$p as it should, but not so in WB-Software. :thumbup:

:thumbup:

#163 pscEx

pscEx

    Platinum Member

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

Posted 10 November 2009 - 08:55 PM

Somehow your program eighter doesn't like me or hex values.
Why always the hex values? :thumbup:
Why is there a hex(3): string in the hex code?

Original: ...

Created with Regshot.

:thumbup:

Why do you ask?
Something going wrong ????

I'm sure thatv the code delivered by reg2WBS.exe is for 100% understood by WB and I do currently not see any reason to change anything.

If you want to have a different private coding,
  • you can either write your personal RegShot2WBS_MedEvil.exe using RegShot output
  • or I PM you the reg2WBS source code, and you write your personal reg2WBS_MedEvil.exe
Peter :thumbup:

#164 pscEx

pscEx

    Platinum Member

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

Posted 10 November 2009 - 09:18 PM

Arrgn. I found a line that was silently droped. Do i have to check the whole outputfile for stuff like that?

original:


output:


:thumbup:

That is the usual procedure an experienced and responsibly developer does, after he used a tool to generate some code. :thumbup:

Peter

#165 pscEx

pscEx

    Platinum Member

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

Posted 10 November 2009 - 09:21 PM

And Error number 3!
In WB-Setup C:\Windows gets replaced with #$pSystemRoot#$p as it should, but not so in WB-Software. :thumbup:

:thumbup:

Thanks for the hint about a possible bug.

Please post a line wich causes that!

Peter

#166 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 November 2009 - 09:50 PM

Please post a line wich causes that!

No thanks. Since the last two times worked so great for me, i think a pass this time.

:thumbup:

#167 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 11 November 2009 - 11:06 AM

VERY good. :)

I was looking for an example on:
  • How an user should NOT report a possible bug.

and one about:
  • How a developer should NOT reply to a bug report.

And found BOTH in the same place. :)

I may also use these posts :) for a "What do you think is the mental age of these people judging from what they wrote?" kind of test. :drunk:

:)

jaclaz

#168 pscEx

pscEx

    Platinum Member

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

Posted 11 November 2009 - 12:43 PM

Can you please explain for the individual
  • post #163

    Why do you ask?
    Something going wrong ????

  • post #164

    That is the usual procedure an experienced and responsibly developer does, after he used a tool to generate some code.

  • post #165

    Thanks for the hint about a possible bug.
    Please post a line wich causes that!

What I did wrong?

Peter

#169 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 11 November 2009 - 02:02 PM

The user posts about a number of possible bugs, adding some perfectly unneeded sarcasm, failing to give appropriate details, only hinting the problems he found.

The developer, evidently missing the point, says he thinks that the app is perfect and that he is not going to change it.

I'm sure thatv the code delivered by reg2WBS.exe is for 100% understood by WB and I do currently not see any reason to change anything.

If you want to have a different private coding,

  • you can either write your personal RegShot2WBS_MedEvil.exe using RegShot output
  • or I PM you the reg2WBS source code, and you write your personal reg2WBS_MedEvil.exe


:drunk:

jaclaz

#170 pscEx

pscEx

    Platinum Member

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

Posted 11 November 2009 - 02:41 PM

The user posts about a number of possible bugs, adding some perfectly unneeded sarcasm, failing to give appropriate details, only hinting the problems he found.

The developer, evidently missing the point, says he thinks that the app is perfect and that he is not going to change it.



:drunk:

jaclaz

Maybe in 'standard cases' you are right.
But you did not consider that MedEvil is my 'favorite enemy' (and I hpe that I also am a member of the party of his favorite enemies) and inspite we are logically friends, we sometimes enjoy such discussions :)
And the app's output is really perfect :) and understood by Winbuilder for 100 (?) percent ( :) ?)

Peter

#171 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 11 November 2009 - 03:08 PM

I'll try to repost what Medevil did (as I understood it).

Question #1:

Should this original:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VPCMap\Security]
"Security"=hex(3):01,00,14,80,90,00,00,00,9C,00,00,00,14,00,00,00,30,00,00,00,02,\........

Created with Regshot.

Translate to:

RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......


I completely fail to understand the question :)

Maybe the question is:
what does a hex(3): value correspond to?
http://windowsitpro....-reg-files.html

2. REG_BINARY data types are indicated by hex:.

3. REG_MULTI_SZ data types are indicated by hex(7):.

4. REG_EXPAND_SZ data types are indicated by hex(2):.


Question #2:

Should this original:

[HKEY_USERS\.DEFAULT\Software\Connectix]

[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC]

[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC\4.0]

translate to:

RegHiveLoad,"WB-Default","%target_sys%\config\default"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix\Virtual PC"
RegHiveUnLoad,"WB-Default"

or should it translate to:

RegHiveLoad,"WB-Default","%target_sys%\config\default"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix\Virtual PC"
RegWrite,HKLM,0x0,"WB-Default\Software\Connectix\Virtual PC\4.0"
RegHiveUnLoad,"WB-Default"


Question #3:

Should string "C:\Windows" get replaced by #$pSystemRoot#$p in WB-Software just like is replaced in WB-Setup?



In any case, not everyone in the world knows how your relations with Medevil usually are, rest assured that to an outsider the exchange looks a lot like an impertinent user making partly senseless questions and a presumptuous developer saying that there are no problems. :)

:drunk:

jaclaz

#172 pscEx

pscEx

    Platinum Member

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

Posted 11 November 2009 - 05:07 PM

..., rest assured that to an outsider the exchange looks a lot like an impertinent user making partly senseless questions and a presumptuous developer saying that there are no problems.

During playing our game that is correct! :)

Peter :drunk:

#173 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 November 2009 - 07:09 PM

Nice looong discussion you two are having. :)

Just for the record, yesterday evening i was pretty p#$%§& because the program was disturbing my circles.
I was so nice in a flow all day and then this impossible program sends me crashing.

That Peter did not respond, as i would have liked in that moment, did not make me angry at him, but the more angry at the prgram as it meant full stop and not just a bump in the road.

Trashed the program and the scripts and called it a day.

For those not familiar with Wb syntax :) :

RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......

Should correctly be:

RegWrite,HKLM,0x3,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,00#$c14#$c80#$......


Question 2 :
The point i had a problem with was, that it was not mentioned.
Previous versions of the script used to give a list of omitted strings at the end.

Question3 maybe would be right for you, but Peter and i know that the String should get replaced in the whole reg file.
So pointing out, that it did not, was more appropriate as to ask if it should.

:drunk:

#174 pscEx

pscEx

    Platinum Member

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

Posted 11 November 2009 - 07:46 PM

For those not familiar with Wb syntax :) :

RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......

Should correctly be:

RegWrite,HKLM,0x3,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,00#$c14#$c80#$......

Now I understand your issue!
It seems to be a reg2WBScript bug and I'm going to look for that.

Why didn't you explain in the first post so clearly?

Pleas post the .reg lines which cause the hex(3) to output! :drunk: :) :)

Peter :)

#175 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 November 2009 - 10:44 PM

Now I understand your issue!
Why didn't you explain in the first post so clearly?

:) Interesting, how people see things differently. I thought, explicitly pointing out the part ,which was wrong, would be more clear, then to provide two lines, where one would need to find the problem oneself.

I will try to remember and post next time this way.

Pleas post the .reg lines which cause the hex(3) to output! :drunk: :) :)

I will see if i can recreate the file, cause as i wrote, i deleted everything yesterday.

:)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users