Windows Embedded Blog

Additional functionality for custom components in XP Embedded Builder

leave a comment »


In the version 2.1 of XP Embedded Builder new functions were included which can be used in the custom components.

For creating customer components in XP Embedded Builder please have a look here.

Create batch commands that will run in FBA at RunOnce

You can create commands that will be executed in the RunOnce phase of FBA. To do this set the action parameter in the Step section of the component configuration file to finalize:

Sample

[Step_xx]
Action=finalize
Arg0=regedit.exe /s myregfile.reg
Arg1=del myregfile.reg

Create components for XP Professional like images only

In the new version of XP Embedded Builder it is possible to create XP Professional like images with all Embedded Features included by just selecting one option during the setup process.

If you want to create a component that will be also available for the XP Professional like installation or a component which should only be available in the XP Professional like setup mode you can use the following parameters in the component configuration.

[Component]
isXPPro=TRUE
forXPProOnly=TRUE

isXPPro –> this parameter will tell XP Embedded Builder that the component can be used in the XP Professional like setup mode too.

forXPProOnly –> this parameters tells XP Embedded Builder that the component can only be used in the XP Professional setup mode.

Additional Parameter for all XPPro options:

XPProStartStep –> this parameter will tell XP Embedded Builder where it should start with the installation.

Sample:

[Component]
Name=Network
Version=1.0
Group=Network
Order=550
isXPPro=TRUE
XPProStartStep=3

[Step_0]
Action=copy
Arg0=DataWindows
Arg1=[InstallWinDir]

[Step_1]
Action=reg
Arg0=Import
Arg1=[InstallWinDir]System32configSYSTEM
Arg2=reg.reg

[Step_2]
Action=reg
Arg0=Import
Arg1=[InstallWinDir]System32configSYSTEM.SAV
Arg2=reg.reg

[Step_3]
Action=Network

If you select to install the Network component in XP Professional like setup mode, XP Embedded Builder will start the component installation at Step_3. In this case it means that it will only display the preconfigured Computername setup dialog which ships with the Network component. The rest of the installation specified in Step 0-2 will be skipped because the networking components are included in the XP Professional like version by default.

Written by Wolfgang Unger

February 3, 2009 at 19:30

Leave a comment