Add Custom Commands and Scripts

Applies To: Windows 7, Windows Server 2008 R2

Note

This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.

You can automate tasks in Windows® Setup by adding customized commands and scripts to the installation process.

In This Section

Add a Custom Command to an Answer File

Describes how to add a custom command to an answer file by using the Run Synchronous feature.

Add a Custom Script to Windows Setup

Describes how to configure a script to run either after Windows Setup completes, or when Windows Setup encounters an error.

See Also

Concepts

Phase 3: Preparing and Customizing Your Windows Image
Add an Application to a Windows PE Image