Jump to content











Photo
* * * * * 2 votes

[tool] reg2WBS


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

#76 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 22 October 2008 - 11:37 AM

I think we need an escape character ( #$n ? ) for a line break character.

#77 pscEx

pscEx

    Platinum Member

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

Posted 22 October 2008 - 11:51 AM

I think we need an escape character ( #$n ? ) for a line break character.

That's possible, and inside Reg2WBS I coded and tested successfully (with #$x), but then I commented out.

Reason:

For me as egineer 'everything' is a question of efficiency.
Therefore I think it is not worth to code (with all possible errors, bug reports etc.) several hours in WinBuilder, just to catch one of 10.000 (my estimation) inputs.

That in this case could be easier done by using a ShellExecute,Reg,...

Peter

#78 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 22 October 2008 - 01:16 PM

For me as egineer 'everything' is a question of efficiency.
Therefore I think it is not worth to code (with all possible errors, bug reports etc.) several hours in WinBuilder, just to catch one of 10.000 (my estimation) inputs.

So just to be clear, your goal as an engineer is to offer a piece of software that i can not blindly rely on? :confused1:

:cheers:

#79 pscEx

pscEx

    Platinum Member

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

Posted 22 October 2008 - 01:26 PM

So just to be clear, your goal as an engineer is to offer a piece of software that i can not blindly rely on? :confused1:

:cheers:

#1 if you, knowing the issue, blindly rely on that (or any other) software, it is your own decision
#2 if you use the code Reg2WBS generated, there will be no harm for your system or yourself. WinBuilder just confrontates you with an error you have to fix (by using reg)
#3 there is only ONE thing / person on the world I'm trusting for 100%: That is me

Peter :cheers:

#80 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 October 2008 - 02:32 PM

In no order of importance (and maybe only important to me?) - I love this program and would like to see these 'improvements' implemented if possible:

1) Program ui opens centered on desktop, now opens off screen to lower right bottom of screen.

2) Save last settings and directories used, now resets to program dir and default settings.

3) Version number shown somewhere on program, header, file name or even 'cursor over' pop-up.

4) Ability to choose new reg file for conversion without need to close and re-open program each time.

Thanks Peter for this great tool :confused1:

#81 pscEx

pscEx

    Platinum Member

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

Posted 22 October 2008 - 02:37 PM

In no order of importance (and maybe only important to me?) - I love this program and would like to see these 'improvements' implemented if possible:

1) Program ui opens centered on desktop, now opens off screen to lower right bottom of screen.

2) Save last settings and directories used, now resets to program dir and default settings.

3) Version number shown somewhere on program, header, file name or even 'cursor over' pop-up.

4) Ability to choose new reg file for conversion without need to close and re-open program each time.

Thanks Peter for this great tool :confused1:

Thanks, Amalux for your useful suggestions.

As I have currently some time (waiting for Nuno to publish beta 6 and therefore not very strong engaged in WinBuilder development) I'm improving (as to be seen from a lot of new version last days) Reg2WBs.

I'll try to realize all of your suggestions.

Peter

#82 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 October 2008 - 05:49 PM

Thanks, Amalux for your useful suggestions.

As I have currently some time (waiting for Nuno to publish beta 6 and therefore not very strong engaged in WinBuilder development) I'm improving (as to be seen from a lot of new version last days) Reg2WBs.

I'll try to realize all of your suggestions.

Peter

:cheers: :confused1:

There are still some 'issues'(?) with vistape/api I think. I'm no expert but it seems the following examples need correction:

_/now\_

reg_add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","#$pSystemDrive#$p\Program Files\Foxit\"



_/should be\_

Reg_Add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","%PE_Programs%\%ProgramFolder%\"

_/now\_
reg_add,0x2,"%reg%\Classes\FoxitReader.FDFDoc\shell\open\command",,"#$q#$pSystemDrive#$p\PROGRA~1\Foxit\FOXITR~1.EXE#$q #$q%1#$q"

_/should be\_
Reg_Add,0x2,"%reg%\Classes\FoxitReader.FDFDoc\shell\open\command",,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q #$q#$p1#$q"


Then there's the whole RegAddBoot thing which I don't know if you want to take on but if interested I can try to help :cheers:


Also, forgive me if this has been explained (I can't find it) but what is the issue(?) with HKEY_USERS?? and what is meant by

reg2WBS does not resolve HKU entries.
Use HKCU instead.

?? Does this mean it can't be fixed or there is a workaround for it or your working on it?? :cheers:

Thanks again Peter and I'm here for testing anything you need :cheers:

#83 pscEx

pscEx

    Platinum Member

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

Posted 22 October 2008 - 06:06 PM

_/now\_

 reg_add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","#$pSystemDrive#$p\Program Files\Foxit\"

 

 _/should be\_

 Reg_Add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","%PE_Programs%\%ProgramFolder%\"

Is that still with the latest version?
I think, that now I first repllace the 'program' (including the sys drive letter), and second the sys drive letter.

But it is not possible for a stupid prog to decide that 'foxit' is the %ProgramFolder%
(maybe yo gave he the impulse to try this impossible feature)

what is the issue(?) with HKEY_USERS?? and what is meant by ?? Does this mean it can't be fixed or there is a

Maybe I misunderstand your question, but here my answer:
HKEY_USERS is a collection of users of a 'normal' PC.
If one of this users logs on, his [HKEY_USERS] data are mapped to HKEY_CURRENT_USER.

For a PE, HKEY_USERS does not exist.

Peter

#84 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 October 2008 - 07:57 PM

(slow response = server issues)

--
(maybe yo gave he the impulse to try this impossible feature)

If anyone can... :cheers:


For a PE, HKEY_USERS does not exist.

The reality is that some programs only produce HKEY_USERS entries, like this
Attached File  ReXMP.7z   587bytes   295 downloads
and converting them thus
Hive_Load,HKU

reg_add,0x1,"%reg%\classes\.cda","","XMPlay"

reg_add,0x1,"%reg%\classes\.it","","XMPlay"

reg_add,0x1,"%reg%\classes\.m3u","","XMPlay"

reg_add,0x1,"%reg%\classes\.mo3","","XMPlay"

...
as in this script does work in PE (I assume because it's read as HKCU). Other conversion tools produce
hive_load,HKCU

reg_add,0x4,"%reg%\SessionInformation","ProgramCount","2"

reg_add,0x1,"%reg%\Software\Classes\.cda","","XMPlay"

reg_add,0x1,"%reg%\Software\Classes\.it","","XMPlay"

reg_add,0x1,"%reg%\Software\Classes\.m3u","","XMPlay"

reg_add,0x1,"%reg%\Software\Classes\.mo3","","XMPlay"
but reg2WBS just results in
***** Unsolved:

//HKEY_USERS\S-1-5-21-484763869-1767777339-682003330-1001\SessionInformation

//HKEY_USERS\S-1-5-21-484763869-1767777339-682003330-1001\Software\Classes\.cda

//HKEY_USERS\S-1-5-21-484763869-1767777339-682003330-1001\Software\Classes\.it

//HKEY_USERS\S-1-5-21-484763869-1767777339-682003330-1001\Software\Classes\.m3u

//HKEY_USERS\S-1-5-21-484763869-1767777339-682003330-1001\Software\Classes\.mo3
:confused1:

#85 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10545 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 22 October 2008 - 08:18 PM

The keys you mention as unsolved seem to be related to SID as a sort of customizations specific for this given user.

Don't know how the program that requires them would react if they would be placed on HKCU instead, guess that on this particular case it would work but I'm not so sure about other apps.. :confused1:

#86 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 October 2008 - 08:43 PM

The keys you mention as unsolved seem to be related to SID as a sort of customizations specific for this given user.

Don't know how the program that requires them would react if they would be placed on HKCU instead, guess that on this particular case it would work but I'm not so sure about other apps.. :confused1:

I don't like the conversion to HKCU, as done here by paraglider's ConvRegToInf tool but according to Peter, HKU (HKEY_USERS) does not exist for PE :cheers: - or am I mis-understanding? I know the HKU entries work, if needed I can test same script with HKCU instead to see what happens :cheers:

#87 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 23 October 2008 - 01:35 AM

There is only one user hive in PE - DEFAULT - which in pebuilder is represented as [Default.AddReg]. In winbuilder this is HKCU or User or Default. Its all the same hive so its does not actually matter which one you use. At pe runtime its HKEY_CURRENT_USER.

#88 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 23 October 2008 - 01:56 AM

There is only one user hive in PE - DEFAULT - which in pebuilder is represented as [Default.AddReg]. In winbuilder this is HKCU or User or Default. Its all the same hive so its does not actually matter which one you use. At pe runtime its HKEY_CURRENT_USER.

Thanks for the clarification but it seems to me, since it doesn't matter to PE, that the original reg information should be reproduced faithfully unless otherwise stipulated i.e. HKU>HKU; HKCU>HKCU etc. but I can see this being a personal preference. Can you shed light on another 'discrepency'; in this same example, your tool adds the following data:

_/reg2WBS\_
Hive_Load,HKU
reg_add,0x1,"%reg%\classes\.cda","","XMPlay"

_/ConvToInf\_
hive_load,HKCU
reg_add,0x1,"%reg%\Software\Classes\.cda","","XMPlay"

is this a bug? or? Also, some reg data produces no output at all where reg2WBS outputs correctly. I will post examples in 10 minutes if you're interested (posting from pe now).

ex here Attached File  no.7z   11.16KB   272 downloads

#89 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 06:41 AM

The reality is that some programs only produce HKEY_USERS entries, like this

I added that to Reg2WBS.

Upload will be after changing all of yout suggestions.

Peter

#90 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 06:55 AM

Thanks for the clarification but it seems to me, since it doesn't matter to PE, that the original reg information should be reproduced faithfully unless otherwise stipulated i.e. HKU>HKU; HKCU>HKCU etc. but I can see this being a personal preference. Can you shed light on another 'discrepency'; in this same example, your tool adds the following data:

_/reg2WBS\_
Hive_Load,HKU
reg_add,0x1,"%reg%\classes\.cda","","XMPlay"

_/ConvToInf\_
hive_load,HKCU
reg_add,0x1,"%reg%\Software\Classes\.cda","","XMPlay"

is this a bug? or? Also, some reg data produces no output at all where reg2WBS outputs correctly. I will post examples in 10 minutes if you're interested (posting from pe now).

There is a unlogical naming in the original API hive names:

HKU targets the software hive
HKCU targets the default hive
HKLM targets the setupreg.hiv hive.

In the newer versions of the API Pedro provides some more logical names:
You can use instead of

HKLM > System
HKCU > User or Default
HKU > Machine

These names are output by the latest Reg2WBS versions.

I would prefer to use 'Software' rather than 'Machine'. Maybe Pedro adds that anywhen to API.

To your bold software:
In PE 'classes' is placed as first level in the software hive.
So, adressing is (in non-API, to make it more clear)
RegHiveLoad,WB-Software,%TargetDir%\i386\system32\config\software
RegWrite,HKLM,0x1,WB-Software\classes\.cda,,XMPlay

Peter

#91 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 11:20 AM

Version 1.3.0 is online! :confused1:

@Amalux:

Please check whether your complains and suggestions are fullfilled.

BTW: I removed the %PE_Programs% check box. That is now logical part of 'API Style'

Peter

#92 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 23 October 2008 - 12:02 PM

@Amalux,

Converegtoinf ignores those reg files because it only supports the normally loaded registry hives not user loaded registry hives i.e. HKEY_LOCAL_MACHINE\SOFTWARE,HKEY_LOCAL_MACHINE\SYSTEM

Not sure how reg2wbs works out which hive they originated from.

#93 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 23 October 2008 - 12:08 PM

Looks like in VistaPE we only have:

%RegSoftware%=%TargetDir%\windows\system32\config\software
%RegSystem%=%TargetDir%\windows\system32\config\system
%RegUser%=%TargetDir%\windows\system32\config\default
%RegDefault%=%TargetDir%\windows\system32\config\default
%HIVE_HKLM%=%RegSystem%
%HIVE_HKCU%=%RegUser%
%HIVE_HKU%=%RegSoftware%
%HIVE_BASE%=HKLM


which I think means:

HKLM= system hive
HKCU = default hive
HKU = software hive
BASE= system hive

Looks to me as though the hive naming is kind of messed up.I think that's the API that convregtoinf uses though.

#94 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 23 October 2008 - 12:38 PM

So Reg2WBS does not create anymore WB compatible output, but API compatible output?

:confused1:

#95 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 12:43 PM

@Amalux,

Converegtoinf ignores those reg files because it only supports the normally loaded registry hives not user loaded registry hives i.e. HKEY_LOCAL_MACHINE\SOFTWARE,HKEY_LOCAL_MACHINE\SYSTEM

Not sure how reg2wbs works out which hive they originated from.

Reg2WBS originally ignored the HKEY_USERS entries, too, but this post of Amalux let me change that

The reality is that some programs only produce HKEY_USERS entries, like this
Attached File  ReXMP.7z   587bytes   295 downloads

Now Reg2WBS simply treats HKEY_USERS\<any user ID>\key
just as HKEY_CURRENT_USER\key
and HKEY_USERS\<any user ID>_classes\key
as HKEY_CURRENT_USER\Software\Classes\key

Peter

#96 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 12:59 PM

So Reg2WBS does not create anymore WB compatible output, but API compatible output?

:cheers:

There is a check box 'Api Style' which, as the name says, you can check or uncheck. :cheers:

Big conquest contest: What is the output, if the box is unchecked? :cheers:

Peter

#97 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 23 October 2008 - 01:30 PM

Big conquest: What is the output, if the box is unchecked? :cheers:

:cheers: [german] Große Eroberung: [/german]
Havn't used your progy in a while. Thought because all problems seem to be about API stuff that you might have switched.

:cheers:

#98 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 01:37 PM

:cheers: [german] Große Eroberung: [/german]

Thanks for improving my English:

I now know (and edited) that is should be 'Big contest'

Peter

#99 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 23 October 2008 - 05:34 PM

Please check whether your complains and suggestions are fullfilled.

:cheers: Thanks Peter!

Testing now, cosmetics and configuration looks great! :cheers: but I'm still getting the following:

now:
reg_add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","#$pSystemDrive#$p\Program Files\Foxit\"

should be:
Reg_Add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","%PE_Programs%\%ProgramFolder%\"

--
now:
reg_add,0x2,"%reg%\Classes\FoxitReader.Document\DefaultIcon",,"#$pSystemDrive#$p\PROGRA~1\Foxit\FOXITR~1.EXE,1"

should be:
Reg_Add,0x2,"%reg%\Classes\FoxitReader.Document\DefaultIcon",,"%PE_Programs%\%ProgramFolder%\%ProgramEXE%,1"

--
now:
reg_add,0x2,"%reg%\ControlSet001\control\Session Manager\Environment","Path","#$pSystemRoot#$p\system32;#$pSystemRoot#$p;#$pSystemRoot#$p\System32\Wbem"

should be:
reg_add,0x2,"%reg%\ControlSet001\control\Session
Manager\Environment","Path","%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"

I know you said this was 'impossible task' so I'll give you a bit more time :cheers:

added: samp reg files to play with if needed Attached File  regsamps.7z   9.66KB   254 downloads

#100 pscEx

pscEx

    Platinum Member

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

Posted 23 October 2008 - 07:16 PM

:cheers: Thanks Peter!

Testing now, cosmetics and configuration looks great! :cheers: but I'm still getting the following:

now:
reg_add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","#$pSystemDrive#$p\Program Files\Foxit\"

should be:
Reg_Add,0x2,"%reg%\Foxit Software\Foxit Reader","InstallPath","%PE_Programs%\%ProgramFolder%\"

...


I tested and the program really changes ALL <local program files path> to %PE_programs% and then the remaining <local system drive letter> to #$pSystemDrive#$p.

As you are living in California, is it possible that your local OS language is Spanish?

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users