Jump to content











Photo
* * * * * 2 votes

[tool] reg2WBS


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

#201 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 26 November 2009 - 10:04 PM

online

YES you are right, my suggestion for regaddboot was wrong. Peter please ignore :)

#202 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 26 November 2009 - 10:09 PM

Lancelot
:)

#203 pscEx

pscEx

    Platinum Member

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

Posted 27 November 2009 - 08:16 AM

Please, note that I already provided a link... :rofl: :thumbup:

Thanks!

I now see it more as a feature request to make WinBuilder able to write 0x8 and 0xa.

If that is done in WB 080, Reg2WBS can provide the syntax, too.

Peter :)

#204 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 28 November 2009 - 10:01 AM

As already reported previously, those entries did not seem strictly needed to work the driver script: I've tried to add those entries to the registry auto-running a batch file (at LiveXP startup) and I've just noticed that really it does not seem to change anything in the driver functionality.
With the batch (and its related ".reg" file) then those entries are correctly in their own place; then trying without the batch (and with the related uncorrect lines hex-a/hex-8 commented in the script) they are regularly in their own place the same... :thumbup:
So, at least for that driver-script, it seems that kind of registry entries are somehow produced by the hardware correct installation itself.
I guess that with more experience/reports about those specific keys we will know that really they are not needed at all and so I've removed the related lines and the batch file from my script that continues to work fine.
Frankly, being the first time that we "meet" those kind of entries in a script and considering that they do not seem needed at all I would wait for possibly further and related reports/issues...
Many thanks for your prompt interest! :) :rofl:

#205 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 02 January 2010 - 07:30 AM

Something found by saydin77:

-H parameter do not work
it does not matter if -H exists or not, "RegHiveLoad,..." "RegHiveUnLoad,..." lines always added to output

with other words:
reg2wbsprg -ftest1.reg -otest1.txt -e -rProcess
reg2wbsprg -ftest2.reg -otest2.txt -e -H -rProcess

both results the same. :)

for some reason, same thing not happen with reg2WBS.exe !!


and a minor request:
If above is a bugy and next version will be published, than i suggest "regaddboot support" option unselected as default because of latest development on projects.

#206 pscEx

pscEx

    Platinum Member

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

Posted 02 January 2010 - 09:45 AM

I cannot reproduce the -H issue.

On my system it works well.

The RegAddBoot option is coded since version 3.1.3 (-B switch)
But the syntax output was wrong and spoke about -B and API.
I corrected in version 3.1.4

Peter

#207 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 02 January 2010 - 10:11 AM

The RegAddBoot option is coded since version 3.1.3 (-B switch)

I am saying the default option for reg2WBS.exe . since projects fixed we would not like to see new users making scripts with RegAddBoot all the time since it is default selected on reg2WBS.



I cannot reproduce the -H issue.

Here is a test example (just downloaded new version):
reg2WBSprg_test1.reg
Windows Registry Editor Version 5.00



[HKEY_LOCAL_MACHINE\Software\Classes\Hi Peter]

@="How are you"
reg2WBSprg_test1.cmd
reg2wbsprg -freg2WBSprg_test1.reg -oreg2WBSprg_test1NO-H.txt -e -rProcess

reg2wbsprg -freg2WBSprg_test1.reg -oreg2WBSprg_test1YES-H.txt -H -e -rProcess

both reg2WBSprg_test1NO-H.txt and reg2WBSprg_test1YES-H.txt have same lines,

[Process]
RegHiveLoad,"WB-Software","%target_sys%\config\software"
RegWrite,HKLM,0x1,"WB-Software\Classes\Hi Peter",,"How#$sare#$syou"
RegHiveUnLoad,"WB-Software"


BUT
reg2WBSprg_test1NO-H.txt
should be

[Process]
RegWrite,HKLM,0x1,"WB-Software\Classes\Hi Peter",,"How#$sare#$syou"


???????????????????????

Here is the package to test easly
http://lancelot.winb...2WBSprg_test.7z
I hope now reproducable :)

#208 pscEx

pscEx

    Platinum Member

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

Posted 02 January 2010 - 10:34 AM

I found in debugger:

The -R switch (write a section to process) implies the -H switch.

It seems to be senceless to process a section writing into a hive which is not open.

BootAddReg option is unchecked by default!?

Peter

#209 pscEx

pscEx

    Platinum Member

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

Posted 02 January 2010 - 03:17 PM

Version 3.1.6 is on the nativeEx server.
  • RegAddBoot option in GUI is OFF by default
  • -R switch does not any more imply -H switch
  • Some GUI changes to wrap all available switches
Download link, syntax and screen shoot in the first post.

Peter

#210 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 31 January 2010 - 10:37 PM

Critical Bug:

[HKEY_LOCAL_MACHINE\Software\PSC]

"psc,0"="test"
==>
Hive_Load,Machine
reg_add,0x1,%reg%\PSC,psc,0,"test"
Hive_Unload,Machine

Also Reminding none-critical bugyies:
*
files with space can not be opened:
Browse and select a reg file with space,
D:\Documents and Settings\Administrator\Desktop\Copy of 1564.reg
*
when "RegFile" button selected, it does not refresh the screen
ex:
reg2wbs open test.reg
click build
open test.reg with notepad, change things
on reg2wbs, click "RegFile", you will not see the change. (and yes, when Build clicked it converts the changed one).

:cheers:

#211 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 09:08 AM

How did you get the value name with a comma inside?

Peter

#212 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 01 February 2010 - 09:18 AM

How did you get the value name with a comma inside?

I start to work on (and still working) localization thingies, check your registry :cheers: ;) :P
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]

"Arial CE,238"="Arial,238"
:P
:P

btw, other minor thingies,
*
may we have no quotes for
RegHiveLoad,"WB-Software","%target_sys%\config\software"
RegHiveUnLoad,"WB-Software"
*
and even i disable "Output API Style and Replace" when I close reg2WBS and open it, it is again enabled. :cheers:

;)

and a joke:
I guess Billy do not like to put #$c in registry :P
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]

"Arial CE#$c238"="Arial#$c238"
or better
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]

Arial#$sCE#$c238=Arial#$c238
ALL billy's fault :cheers:

#213 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 09:33 AM

This script code is generated:
Hive_Load,Software

reg_add,0x1,"%reg%\Microsoft\Windows NT\CurrentVersion\FontSubstitutes","Arial CE,238","Arial#$c238"

reg_add,0x1,"%reg%\Microsoft\Windows NT\CurrentVersion\FontSubstitutes","Arial CYR,204","Arial#$c204"

reg_add,0x1,"%reg%\Microsoft\Windows NT\CurrentVersion\FontSubstitutes","Arial Greek,161","Arial#$c161"

reg_add,0x1,"%reg%\Microsoft\Windows NT\CurrentVersion\FontSubstitutes","Arial TUR,162","Arial#$c162"

...

And this is written to registry (WB SP7):
lanz_reg.gif
What's wrong?

Peter

EDIT: I'll try to store the config, and remove the quotes.

#214 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 01 February 2010 - 09:39 AM

What's wrong?

Can you help me to explain.
Generate all FontSubstitutes and send script here (or put all on codebox). :cheers:
ps: thanks for edit ;)

#215 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 09:46 AM

generated with switches /H /A18 /E /P:
Attached File  fntsubs.zip   615bytes   404 downloads
Peter

#216 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 01 February 2010 - 10:01 AM

I see, :P

Something triggers this BUG, And I find it, NONE-SPACE :cheers:.
when reg2wbs finds SPACE on value, it adds quotes around, but when there is no space on value, no quotes around causing this BUG.

Example:
Following
[HKEY_LOCAL_MACHINE\SOFTWARE\1PSC_Test]

"PSC,0"="Test"
Produce BUG:
RegWrite,HKLM,0x1,WB-Software\1PSC_Test,PSC,0,"Test"
Following
[HKEY_LOCAL_MACHINE\SOFTWARE\1PSC_Test]

"PSC , 0"="Test"
Works
RegWrite,HKLM,0x1,WB-Software\1PSC_Test,"PSC , 0","Test"

Real Life Example:
My FontSubstitutes is different than yours (more crowded since I manually installed many language components) there are none spaced value names
As a result I get 4 Insected entries

RegWrite,HKLM,0x1,"WB-Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes",System,0,"System#$c162"
RegWrite,HKLM,0x1,"WB-Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes",Fixedsys,0,"Fixedsys#$c162"
RegWrite,HKLM,0x1,"WB-Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes",Courier,0,"Courier#$sNew#$c162"
RegWrite,HKLM,0x1,"WB-Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes",Helv,0,"MS#$sSans#$sSerif#$c162"


I hope now clear ;)

Reminding previous:

Also Reminding none-critical bugyies:
*
files with space can not be opened:
Browse and select a reg file with space,
D:\Documents and Settings\Administrator\Desktop\Copy of 1564.reg
*
when "RegFile" button selected, it does not refresh the screen
ex:
reg2wbs open test.reg
click build
open test.reg with notepad, change things
on reg2wbs, click "RegFile", you will not see the change. (and yes, when Build clicked it converts the changed one).

;)



#217 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 01 February 2010 - 10:31 AM

and one more minor thing if you find time :cheers:
http://img97.imagesh...01001021226.png

#218 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 11:44 AM

New version 3.1.7 ready for download!

Peter

#219 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 February 2010 - 12:09 PM

Is this a "quotes" problem? :cheers:

Just in case I do have a couple quotes :P for use in these occasions :cheers:, both by Albert Einstein ;) :

We can't solve problems by using the same kind of thinking we used when we created them.


Intellectuals solve problems, geniuses prevent them.


:P

But as it often happens, I lied ;), I have two more of them :P :

Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.


If we knew what it was we were doing, it would not be called research, would it?


Keep up the good work! :cheers:


:P

Wonko

#220 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 01 February 2010 - 03:35 PM

It seems the space in naming issue persists in 3.1.7 :cheers:

Attached File  test_1.zip   320bytes   375 downloads

#221 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 03:39 PM

@Amalux
@lancelot

Can you give an exact sample with "Space in name"?

I do not have that issue with
"C:\Dokumente und Einstellungen\Peter\Desktop\x.reg"

Peter

#222 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 01 February 2010 - 04:10 PM

@Amalux
@lancelot

Can you give an exact sample with "Space in name"?

I do not have that issue with
"C:\Dokumente und Einstellungen\Peter\Desktop\x.reg"

Peter

Real life example: Attached File  Sygate_Technologies__Inc.zip   745bytes   349 downloads

v.3.1.2 works, 3.1.6 and 3.1.7 do not (I don't have 3.1.3-5).

#223 pscEx

pscEx

    Platinum Member

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

Posted 01 February 2010 - 05:15 PM

For me your sample seems to be processed correctly:

IniRead,%API%,Main,Title,%apiTitle%
If,Not,%apiTitle%,EQUAL,Common_Api,Begin
IniRead,%API%,Main,Version,%apiVersion%
If,%apiVersion%,SMALLER,18,Halt,"API version 18 or higher needed!"
End
Hive_Load,Software
reg_add,0x0,"%reg%\Sygate Technologies, Inc."
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",smc_install_time,1195258084
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",TridentControlType,100
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",smc_debuglog_on,1
reg_add,0x2,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",smc_install_path,#$pSystemDrive#$p\Program#$sFiles\Sygate\SPF\
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",smc_Installed,1
reg_add,0x1,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",Version,5.6
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",Build,84282104
reg_add,0x1,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",ProductCode,{F34D9A5F-484A-4E31-A9D3-908CB265B289}
reg_add,0x3,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall",install_time,7c,31,3e,47
reg_add,0x3,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\Netport",NPInstalled,01,00,00,00
reg_add,0x2,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\Netport",Path,#$pSystemDrive#$p\Program#$sFiles\Sygate\SPF\Netport
reg_add,0x3,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\Netport",WGDRVINSTALLED,01,00,00,00
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\Shared",FwsVPNProductStRequest,2
reg_add,0x4,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\TSE",Version,16778216
reg_add,0x2,"%reg%\Sygate Technologies, Inc.\Sygate Personal Firewall\TSE",Path,#$pSystemDrive#$p\Program#$sFiles\Sygate\SPF\
Hive_Unload,Software

What's wrongt?

Peter

#224 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 01 February 2010 - 05:18 PM

Can you give an exact sample with "Space in name"?

I do not have that issue with
"C:\Dokumente und Einstellungen\Peter\Desktop\x.reg"


use reg2WBS.exe (NOT reg2WBSprg.exe)
Browse:
"C:\Dokumente und Einstellungen\Peter\Desktop\x x.reg"
or
"C:\x x.reg"
and click "Build"

ps:
with following amalux's example
Browse:
"C:\Sygate Technologies, Inc.reg"
and click build

:cheers:

#225 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 01 February 2010 - 05:20 PM

For me your sample seems to be processed correctly:

What's wrongt?

Peter

I don't know, v.3.1.6-7 produces no output for me unless I remove spaces from name of reg file :cheers:

v.3.1.2 works fine with spaces, I don't get it.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users