Freigeben über


Using the Script Component Wizard

 

The Windows Script Component package includes a Script Component Wizard that automates the process of creating a script component (.wsc) file.

Functions that the Wizard Performs

  • Creates the .wsc file and adds basic XML elements.

  • Prompts for and creates registration information.

  • Prompts for the type of interface handler you want the script component to use.

  • Prompts for properties you want to expose and creates the necessary elements in the scripting language you specify.

  • Prompts for methods you want to expose and creates the necessary elements in the scripting language you specify.

  • Prompts for events that the script component can fire and creates the skeleton event elements.

    Note

    You can download and install the Script Component Wizard from https://msdn.microsoft.com/downloads. In the left pane, expand the Web Development node. Expand the Windows Script node and select Component Wizard.

The wizard creates a skeleton script component with information you provide, and writes it out as a .wsc file. Edit the .wsc file and add your script to create the script component's functionality.

Note

The wizard creates a script component file containing the <?XML ?> declaration at the top, meaning that the contents of the file must be XML-conformant. For more details, see Script Component Files and XML Conformance.

See Also

Script Component File Contents
Creating Registration Information
Creating Script Components
Script Component Files and XML Conformance