共用方式為


Add a Registry Key to an Answer File (Standard 7 SP1)

7/8/2014

The following procedure describes how to add a registry subkeys and values to an installation by using the Run Synchronous feature in Image Configuration Editor.

To add a custom command to an answer file

  1. Open Image Configuration Editor.

  2. On the File menu, select Open Answer File. Choose an answer file from the Open dialog box.

  3. On the Insert menu, point to Synchronous Command. Choose a configuration pass from the submenu.

    The Create Synchronous Command dialog box opens.

  4. In the Enter command line text box, enter the following command, replacing <regentryfilename> with the name of a registration entries (.reg) file that contains the registry subkeys and values you would like to add:

    %windir%\regedit.exe /S "<regentryfilename>"
    

    Note

    For more information on how to use a registration entry (.reg) file to add, modify, or delete registry subkeys and values, see this Microsoft web site.

  5. Choose OK.

    Note

    If the command is not added properly, you might need to add the System Management Utilities package, which contains regedit.exe, to your image. For more information on how to find packages to add to your image, see Find a Package in Image Configuration Editor

See Also

Tasks

Configure Settings in an Answer File in Image Configuration Editor

Concepts

Settings and Properties in Windows Embedded Standard 7
Image Configuration Editor User Interface