Jump to content











Photo
- - - - -

BartPE .INF


  • Please log in to reply
21 replies to this topic

#1 pscEx

pscEx

    Platinum Member

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

Posted 15 May 2008 - 02:08 PM

I'm still testing to include *.INF files directly in a WinBuilder project.

There are some questions I cannot answer as BartPE newbie.

I'm sure that a lot of people here can give me an answer.

Thanks

Peter
  • Can a BartPE CD be built from a Vista source?
  • I have a plugin I do not understand:
    [Version]
    
    Signature="$Windows NT$"
    
    
    
    [PEBuilder]
    
    Name=&#34;Anti-Spyware&#58; CWShredder <CONFIG- to update>&#34;
    
    Enable=0
    
    Config=get_update.cmd
    
    ConfigTool=Update
    
    
    
    &#91;WinntDirectories&#93;
    
    a=&#34;Programs\CWShredder&#34;,2
    
    b=&#34;i386\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.2600.1360_x-ww_24a2ed47&#34;,2
    
    c=&#34;i386\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.1612_x-ww_7c379b08&#34;,2
    
    
    
    &#91;SourceDisksFiles&#93;
    
    CWShredder.exe=a,,1
    
    
    
    &#91;Append&#93;
    
    nu2menu.xml, CWShredder_nu2menu.xml
    Dirs b and c are never used in this plugin. What's the reason to have them?
  • There are registry entries like
    0x2,&#34;Sherpya\XPEinit\Programs&#34;,&#34;Device Tools\Install Devices&#34;,&#34;%SystemDrive%\Programs\HWPnP\HWPnP.exe|+all&#34;
    What happens with these entries during boot?


#2 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 15 May 2008 - 02:48 PM

Hi Peter,


b=&#34;i386\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.2600.1360_x-ww_24a2ed47&#34;,2

 c=&#34;i386\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.1612_x-ww_7c379b08&#34;,2
these lines doens't seem to do anything, because the attribute is set to 2. If it was 1 or 3 pebuilder would create them


0x2,&#34;Sherpya\XPEinit\Programs&#34;,&#34;Device Tools\Install Devices&#34;,&#34;%SystemDrive%\Programs\HWPnP\HWPnP.exe|+all&#34;
Thsese registry values are used by the xpe plugin to add a sortcut in the start menu

This command:
%SystemDrive%\Programs\HWPnP\HWPnP.exe|+all
will force the system to detect and reinstall all its devices.

For more inforamtion look here:
http://www.nu2.nu/pe...luginformat.htm
http://www.collewijn.info/xpe/main.php

btw: Well done for the new beta version! I was too busy to come and test it!


John

#3 pscEx

pscEx

    Platinum Member

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

Posted 15 May 2008 - 08:02 PM

Thanks for your explanations, Smiley!

0x2,&#34;Sherpya\XPEinit\Programs&#34;,&#34;Device Tools\Install Devices&#34;,&#34;%SystemDrive%\Programs\HWPnP\HWPnP.exe|+all&#34;
Thsese registry values are used by the xpe plugin to add a sortcut in the start menu

That means that I have to convert a AddReg of "Sherpya\XPEinit\Programs" to a WinBuilder add_shortcut ! (?)

For more inforamtion look here:
http://www.nu2.nu/pe...luginformat.htm

That's what I used for coding the converter!

About Vista as source CD you do not have any opinion?

AFAIK it is not (yet) provided, if you look into the .2600 and .3790 section extentions.

Peter

#4 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 15 May 2008 - 08:39 PM

About Vista as source CD you do not have any opinion?


No pe builder doesn't support building vista-based livecds

That means that I have to convert a AddReg of "Sherpya\XPEinit\Programs" to a WinBuilder add_shortcut ! (?)


Inside the xpe plugin there is a helpfile that discribes this syntax

#5 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4168 posts

Posted 16 May 2008 - 04:50 AM

Attached File  xpe.htm   14.99KB   5264 downloads


0x2, "Sherpya\XPEinit\Programs", "Internet\Maxthon", "%SystemDrive%\Programs\Maxthon\Maxthon.exe"

Shortcut to Start/Programs Menu

0x2, "Sherpya\XPEinit\Desktop", "Maxthon", "%SystemDrive%\Programs\Maxthon\Maxthon.exe"

Shortcut to Desktop


0x2, "Sherpya\XPEinit\Quicklaunch", "Maxthon", "%SystemDrive%\Programs\Maxthon\Maxthon.exe"

Shortcut to Quicklaunch

#6 pscEx

pscEx

    Platinum Member

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

Posted 16 May 2008 - 04:24 PM

New question:

What does
0x7,&#34;Sherpya\RegExpander\HKCU&#34;,&#34;Control Panel\desktop&#34;,&#34;Wallpaper&#34;

do?

Peter

#7 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 16 May 2008 - 04:40 PM

New question:

What does

0x7,&#34;Sherpya\RegExpander\HKCU&#34;,&#34;Control Panel\desktop&#34;,&#34;Wallpaper&#34;

do?

Peter


You can find Sherpya's Registry expander here:
http://oss.netfarm.it/winpe/

I have also attached it's help file that discribes the above syntax

Attached Files



#8 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4168 posts

Posted 17 May 2008 - 06:42 AM

Sherpya is a member here, you might want to ask him in a PM to check this thread out. He might be able to provide more specific details that are not covered by the provided html files.

I love the prospect of being able to hopefully run plugins with the Winbuilder Projects.

#9 pscEx

pscEx

    Platinum Member

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

Posted 17 May 2008 - 11:25 AM

Sherpya is a member here, you might want to ask him in a PM to check this thread out. He might be able to provide more specific details that are not covered by the provided html files.

Thanks for the hint. I PMed him

Peter

#10 pscEx

pscEx

    Platinum Member

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

Posted 17 May 2008 - 11:30 AM

I'm unlimited in new questions.

The BartBE variable @language@ is used rarely, but it is used.

For WinBuilder I replaced by %language%.

But to give it a value, I have to convert the M$ locale ID to the corresponding BartPE string
e.g. 00000407 > 'German'
00000409 > 'English'
(I'm not even sure whether 'German' and 'English' are the 'official' BartPE names)

Does anybody have a list?
Or can a lot of members post their native combination here?

Thanks

Peter

#11 paraglider

paraglider

    Gold Member

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

Posted 17 May 2008 - 12:42 PM

RegExander runs when you boot your PE CD. It replaces environment variables in the specified valus with the absolute values. So:

0x7,"Sherpya\RegExpander\HKCU","Control Panel\desktop","Wallpaper"

This tells regexpander to expand the environment variables in the:

[HKEY_CURRENT_USER\Control Panel\desktop]
Wallpaper

value. This is to fix problems with programs that don't automatically expand environment variables in registry values when they read them.

#12 Sherpya

Sherpya

    Member

  • Developer
  • 51 posts
  • Location:Italy
  •  
    Italy

Posted 17 May 2008 - 01:43 PM

New question:

What does

0x7,&#34;Sherpya\RegExpander\HKCU&#34;,&#34;Control Panel\desktop&#34;,&#34;Wallpaper&#34;

do?

Peter


regexpander picks HKEY_CURRENT_USER\Control Panel\Desktop
reads the value of Wallpaper expands it using ExpandEnvironmentStrings
then write the result back in the key

this mean that a value of
%SYSTEMDRIVE%\Programs\Wallpaper.bmp
is expanded to x:\Programs\Wallpaper.bmp
then wrote back to the key

if %SYSTEMDRIVE% variable is X:

and sorry but the syntax of regexpander was never enough clear ;)

#13 pscEx

pscEx

    Platinum Member

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

Posted 17 May 2008 - 02:16 PM

regexpander picks HKEY_CURRENT_USER\Control Panel\Desktop
reads the value of Wallpaper expands it using ExpandEnvironmentStrings
then write the result back in the key

this mean that a value of
%SYSTEMDRIVE%\Programs\Wallpaper.bmp
is expanded to x:\Programs\Wallpaper.bmp
then wrote back to the key

if %SYSTEMDRIVE% variable is X:

and sorry but the syntax of regexpander was never enough clear ;)

Thanks, Sherpya!

Now I understood.

The function doing this, is that a separate program which could be started at WinBuilder PE boot?
Or is it part of an complexe XPE init program?

In the first case, I could include it in the conversion mechanism, to copy and start on boot.
In the second case it would be necessary for me to code a small prog just doing this env expand (no problem of course).

Peter

#14 Sherpya

Sherpya

    Member

  • Developer
  • 51 posts
  • Location:Italy
  •  
    Italy

Posted 17 May 2008 - 02:19 PM

no regexpander is a standalone plugin, used i.e. in java plugin to fix paths,
of course you need regexpander executable included in the plugin

#15 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 17 May 2008 - 04:30 PM

@psc
There already is a regexpander.exe in Galapos IZARC and UltraISO scripts.
But don't know if it comes from Sherpya or if Galapo coded something new.

;)

#16 pscEx

pscEx

    Platinum Member

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

Posted 17 May 2008 - 07:58 PM

@psc
There already is a regexpander.exe in Galapos IZARC and UltraISO scripts.
But don't know if it comes from Sherpya or if Galapo coded something new.

;)


Thanks, Medevil!

Building a conclusion, I'm currently sure what to do:

Adding a script 'InfConvertSupport.Script' or similar to the very beginning of a project, in case of nativeEx to 'Build'
This script defines some variables which are used by the INF conversion task.
It also defines a section like 'RegExpandSupport' which can be called by other scripts and mainly contains a translated version of Sherpya's 'RegExpand.inf'

Peter

BTW: If somebody wants to know the 'used variables', here the current status (with my actual German /XP SP2 values)
&#91;Variables&#93;

  %source_Build%=2600

  %LocProgNam%=Programme

  %LocProgSM%=Programme

 %target_Lng%=German

  %spFile%=SP2.cab

  %drFile%=driver.cab


#17 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 17 May 2008 - 10:20 PM

There already is a regexpander.exe in Galapos IZARC and UltraISO scripts.
But don't know if it comes from Sherpya or if Galapo coded something new.


I had to code something new as I never really figured out how to use Sherpya's tool. Mine's ExpEnvVar.exe used in IZArc, UltraISO, and WinMerge scripts.

Regards,
Galapo.

#18 pscEx

pscEx

    Platinum Member

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

Posted 20 May 2008 - 04:50 PM

I have a new question.

In Sherpya's RegExpander.inf there is the code

&#91;Software.AddReg&#93;

0x1,&#34;Microsoft\Windows\CurrentVersion\RunOnceEx\800&#34;,&#34;100&#34;,&#34;||RegExpander.exe&#34;

0x0,&#34;Sherpya\RegExpander&#34;,&#34;HKLM&#34;

0x0,&#34;Sherpya\RegExpander&#34;,&#34;HKCR&#34;

0x0,&#34;Sherpya\RegExpander&#34;,&#34;HKCU&#34;

Does this a complete scan of HLKM, HKCR and HKCU with all subkeys?
Or does it only 'enable' these keys for later scans?

Peter

#19 Sherpya

Sherpya

    Member

  • Developer
  • 51 posts
  • Location:Italy
  •  
    Italy

Posted 22 May 2008 - 03:17 PM

no sorry regexpander does not recurse

#20 pscEx

pscEx

    Platinum Member

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

Posted 22 May 2008 - 03:21 PM

no sorry regexpander does not recurse

Ok, That's good! ;)

But why the three lines in your RegExpander.inf?

Peter

#21 Sherpya

Sherpya

    Member

  • Developer
  • 51 posts
  • Location:Italy
  •  
    Italy

Posted 22 May 2008 - 04:00 PM

these three lines are placeholders for the list of entries of each registry hive

#22 pscEx

pscEx

    Platinum Member

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

Posted 22 May 2008 - 04:05 PM

these three lines are placeholders for the list of entries of each registry hive

That I understand as something like templates.

Thanks

Peter ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users