[tool] reg2WBS
#201
Posted 26 November 2009 - 10:04 PM
YES you are right, my suggestion for regaddboot was wrong. Peter please ignore
#202
Posted 26 November 2009 - 10:09 PM
#203
Posted 27 November 2009 - 08:16 AM
Thanks!Please, note that I already provided a link...
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
Posted 28 November 2009 - 10:01 AM
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...
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!
#205
Posted 02 January 2010 - 07:30 AM
-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
Posted 02 January 2010 - 09:45 AM
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
Posted 02 January 2010 - 10:11 AM
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.The RegAddBoot option is coded since version 3.1.3 (-B switch)
Here is a test example (just downloaded new version):I cannot reproduce the -H issue.
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
Posted 02 January 2010 - 10:34 AM
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
Posted 02 January 2010 - 03:17 PM
- 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
Peter
#210
Posted 31 January 2010 - 10:37 PM
[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).
#211
Posted 01 February 2010 - 09:08 AM
Peter
#212
Posted 01 February 2010 - 09:18 AM
I start to work on (and still working) localization thingies, check your registryHow did you get the value name with a comma inside?
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "Arial CE,238"="Arial,238"
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.
and a joke:
I guess Billy do not like to put #$c in registry
[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#$c238ALL billy's fault
#213
Posted 01 February 2010 - 09:33 AM
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):
What's wrong?
Peter
EDIT: I'll try to store the config, and remove the quotes.
#214
Posted 01 February 2010 - 09:39 AM
Can you help me to explain.What's wrong?
Generate all FontSubstitutes and send script here (or put all on codebox).
ps: thanks for edit
#215
Posted 01 February 2010 - 09:46 AM
#216
Posted 01 February 2010 - 10:01 AM
Something triggers this BUG, And I find it, NONE-SPACE .
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
Posted 01 February 2010 - 10:31 AM
#218
Posted 01 February 2010 - 11:44 AM
Peter
#219
Posted 01 February 2010 - 12:09 PM
Just in case I do have a couple quotes for use in these occasions , 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.
But as it often happens, I lied , I have two more of them :
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!
Wonko
#220
Posted 01 February 2010 - 03:35 PM
#221
Posted 01 February 2010 - 03:39 PM
@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
Posted 01 February 2010 - 04:10 PM
Real life example: Sygate_Technologies__Inc.zip 745bytes 349 downloads@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
v.3.1.2 works, 3.1.6 and 3.1.7 do not (I don't have 3.1.3-5).
#223
Posted 01 February 2010 - 05:15 PM
What's wrongt?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
Peter
#224
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
#225
Posted 01 February 2010 - 05:20 PM
I don't know, v.3.1.6-7 produces no output for me unless I remove spaces from name of reg fileFor me your sample seems to be processed correctly:
What's wrongt?
Peter
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