[tool] reg2WBS
#151
Posted 22 February 2009 - 05:58 PM
Fixed: There have been some troubles with converting the highest level values in a *.reg.
Peter
#152
Posted 22 February 2009 - 07:21 PM
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
Posted 03 November 2009 - 09:57 AM
Unnecessary quotes are not written.
Peter
#154
Posted 03 November 2009 - 10:07 AM
now i can use less "replace" function of my notepad
is it possible to have RegAddBoot lines too ?
#155
Posted 03 November 2009 - 10:20 AM
Peter
#156
Posted 03 November 2009 - 11:10 AM
maybe with a limited support things can work, still user check needed :How to decide whether RegAddBoot or reg_add has to be written?
Giving example 1:
This registry
with reg2WBS converted to:[HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command]
@="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -requestPending -osint -url \"%1\""
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#$qThis even do not require user fix
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
Posted 03 November 2009 - 11:30 AM
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 .
#158
Posted 03 November 2009 - 03:33 PM
- Added RegAddBoot support
- Fixed bug in Environment Replacement
- Added (x86) prog dir detection (untested)
Peter
#159
Posted 03 November 2009 - 04:06 PM
Tested, working fine with the designed way you write.Added (x86) prog dir detection (untested)
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 )
Good luck with your new project.
#160
Posted 10 November 2009 - 08:14 PM
Why always the hex values?
Why is there a hex(3): string in the hex code?RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......
Original:
Created with Regshot.[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,\........
#161
Posted 10 November 2009 - 08:24 PM
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"
#162
Posted 10 November 2009 - 08:33 PM
In WB-Setup C:\Windows gets replaced with #$pSystemRoot#$p as it should, but not so in WB-Software.
#163
Posted 10 November 2009 - 08:55 PM
Why do you ask?Somehow your program eighter doesn't like me or hex values.
Why always the hex values?
Why is there a hex(3): string in the hex code?
Original: ...
Created with Regshot.
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
#164
Posted 10 November 2009 - 09:18 PM
That is the usual procedure an experienced and responsibly developer does, after he used a tool to generate some code.Arrgn. I found a line that was silently droped. Do i have to check the whole outputfile for stuff like that?
original:
output:
Peter
#165
Posted 10 November 2009 - 09:21 PM
Thanks for the hint about a possible bug.And Error number 3!
In WB-Setup C:\Windows gets replaced with #$pSystemRoot#$p as it should, but not so in WB-Software.
Please post a line wich causes that!
Peter
#166
Posted 10 November 2009 - 09:50 PM
No thanks. Since the last two times worked so great for me, i think a pass this time.Please post a line wich causes that!
#167
Posted 11 November 2009 - 11:06 AM
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.
jaclaz
#168
Posted 11 November 2009 - 12:43 PM
- 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!
Peter
#169
Posted 11 November 2009 - 02:02 PM
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
jaclaz
#170
Posted 11 November 2009 - 02:41 PM
Maybe in 'standard cases' you are right.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.
jaclaz
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
Posted 11 November 2009 - 03:08 PM
Question #1:
Should this original:
Created with Regshot.[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,\........
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.html2. 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:
translate to:[HKEY_USERS\.DEFAULT\Software\Connectix]
[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC]
[HKEY_USERS\.DEFAULT\Software\Connectix\Virtual PC\4.0]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"
RegHiveUnLoad,"WB-Default"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.
jaclaz
#172
Posted 11 November 2009 - 05:07 PM
During playing our game that is correct!..., 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.
Peter
#173
Posted 11 November 2009 - 07:09 PM
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 :
Should correctly be:RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......
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.
#174
Posted 11 November 2009 - 07:46 PM
Should correctly be:RegWrite,HKLM,0x1,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,"hex(3):01#$c00#$c14#$c80#$......
Now I understand your issue!RegWrite,HKLM,0x3,WB-Setup\ControlSet001\Services\VPCMap\Security,Security,00#$c14#$c80#$......
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!
Peter
#175
Posted 11 November 2009 - 10:44 PM
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.Now I understand your issue!
Why didn't you explain in the first post so clearly?
I will try to remember and post next time this way.
I will see if i can recreate the file, cause as i wrote, i deleted everything yesterday.Pleas post the .reg lines which cause the hex(3) to output!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users