Compartilhar via


Creating an FBA Command

First Boot Agent (FBA) commands are created as custom resources in Component Designer and Target Designer. These commands are performed when FBA runs, which is during the first boot of the run-time image on the target device. The following list shows the two custom resources that are unique to FBA:

  • FBA DLL/COM Registration

    This registers DLLs and COM objects by using the Regsvr32.exe tool at run time.

  • FBA Generic Command

    This can call any command-line executable during FBA processing.

The custom resource called FBA OC Mgr Request is reserved for Microsoft use only.

To create an FBA command

  1. Using Component Designer, create a new component, or edit an existing component, expand the node for the component, right-click Resources, and choose Add.

    - or -

    Using Target Designer, create a new configuration or open an existing configuration, right-click Extra Resources, and choose Add.

  2. Choose the FBA command that you want to create, either FBA Generic Command or FBA DLL/COM Registration.

  3. In the dialog box that appears, edit the properties of the custom resource.

    Note   In the Extended Properties section, you must change the phase property to a number greater than 8500. Phases 0-8500 are reserved for system use only.

  4. Choose OK.

For more information, see Adding a Custom Resource to a Component and Adding a Custom Resource to a Configuration, in Windows XP Embedded Studio Help.

See Also

First Boot Agent | FBA DLL/COM Registration | FBA Generic Command | Custom Resources

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.