Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
From the author of

Creating the Wizard Launch File

Visual Studio .NET uses a wizard launch file—a text file with a .vsz extension—to determine how to interact with the project template. The wizard launch file indicates the wizard to call and any parameters that are passed to the wizard. Our project template will call the VsWizard.WizardEngine, passing the name of our project template folder, a project type, and whether the project template has a user interface. The text for the wizard launch file is added to a new file named C:\Program Files\Microsoft Visual Studio .NET\VC#\CSharpProjects\CSharpAttr.vsz. Listing 4 shows the text I added. (Line numbers are for reference only.)

Listing 4—The Wizard Launch File for the Custom Project Template

1 VSWIZARD 7.0
2 Wizard=VsWizard.VsWizardEngine
3 Param="WIZARD_NAME = CSharpAttrWiz"
4 Param="WIZARD_UI = FALSE"
5 Param="PROJECT_TYPE = CSPROJ"
  • Line 1 states that we'll be using the VSWIZARD version 7.0.

  • Line 2 indicates the class (VsWizardEngine) that we're invoking in the VsWizard.dll.

  • Line 3 specifies a parameter that represents the folder containing a project template.

  • Line 4 notes that the wizard will not be looking for a user interface in the HTML subfolder.

  • Line 5 shows that the project type is a .csproj (a C# project).

Wizard launch files generally contain some modest variation of the text in Listing 4. (Search your hard drive with Windows Explorer for more examples of wizard launch files.)

  • + Share This
  • 🔖 Save To Your Account