Microsoft® Windows® Script Component Using the Script Component Wizard |
Script Component Tutorial Previous Next |
The Windows® Script Component package includes a Script Component Wizard that automates the process of creating a script component (.wsc) file. The wizard performs the following functions:Note You can download and install the Script Component Wizard from the Microsoft Scripting Technologies Web site on www.microsoft.com.
- 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.
The wizard creates a skeleton script component with information you provide, and writes it out as an .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.