Setting Up the MTS Administrative Sample Scripts

The administration object sample scripts demonstrate how to write scripts in an Automation-compatible language (such as Visual Basic Scripting Edition (VBScript) that automate procedures in the MTS Explorer. The sample scripts automate deployment for the Sample Bank application.

In order to run the sample scripts, you must first install the Windows Scripting Host (WSH). Note that these scripts will only run on Microsoft Windows NT and Alpha platforms.

To install the Windows Scripting Host from the Windows NT 4.0 Option Pack:

  1. If you have not already installed WSH, open the Start menu, choose the Microsoft Internet Information Server option, and click Internet Information Server Setup.
  2. Choose the Add/Remove option from the setup program.
  3. Find the Windows Scripting Host option in the list of components, and select the checkbox.
  4. Click Finish. The Windows NT 4.0 Option Pack setup program will install WSH on your computer.

Once you have WSH installed, you can use the administration object sample scripts. The following sample scripts are located in your \MTS\Samples\WSH sub-directory:

Deletes existing versions of Sample Bank, creates a new package named Sample Bank, installs components from the Sample Bank Visual Basic, Visual C++, and Visual J++ DLLs into the new package, changes transaction attributes, and adds a new role. You must modify the file path before running the script.

Note this script requires that the computer registry contain all components’ programmatic identifiers (progIDs). Therefore, you must use the Visual Studio 97 ActiveX Wizard to register your Java components before you run this script.

Installs the Sample Bank package into the MTS run-time environment. You must modify the file path before running the script.

Uninstalls the Sample Bank package from the MTS run-time environment. You must modify the file path before running the script.

Allows you to run the InstDll.vbs script from a console window and enter the file path as a parameter to delete existing versions of Sample Bank, create a new package named Sample Bank, install components from the Sample Bank Visual Basic, Visual C++, and Visual J++ DLLs into the new package, change transaction attributes, and add a new role.

Allows you to run the InstPak.vbs script from a console window and enter the file path as a parameter to install the Sample Bank package into the MTS run-time environment.

For more information about the scriptable administration objects and the sample scripts, refer to the Automating MTS Administration topic in the MTS Administrator’s Guide.

Limitations of the Administrative Sample Scripts