Share via


Registering and Installing Windows Media Services Components

banner art

Previous Next

Registering and Installing Windows Media Services Components

To develop an application on a computer that does not have Windows Media Services installed, you must install the Windows Media Services primary interop assembly and register the type library.

  • **Note   **The interop_msxml.dll file must be in the same folder as the PIA, or else the PIA will not register.

To install the PIA, use the Global Assembly Cache Utility (GacUtil.exe).

To install a PIA in the GAC, at the command prompt, type:

  Gacutil /i AssemblyName

In this command, AssemblyName is the path and file name of the assembly to be installed.

The following example installs the Windows Media Services PIA in the GAC:

  Gacutil /i "
  C:\Program Files\Microsoft SDK\include\Microsoft.WindowsMediaServices.dll" 
  • Note   You should search your computer for Gacutil.exe. Usually it can be found in %windir%\Microsoft.NET\Framework\v1.0.xxxx where xxxx is the build number of the Windows .NET Framework release you are using, or in the \FrameworkSDK\Bin folder where you installed the development environment.

To register the type library, at the command prompt, type:

  RegSvr32 dllname

In this command, dllname is the path and file name of the DLL to be registered.

The following example registers the type library:

  RegSvr32 "
  C:\Program Files\Microsoft SDK\include\wmsservertypelib.dll" 

To learn how to use the PIA with Visual Studio .NET, see Using the Windows Media Services Primary Interop Assembly.

The script file named regpiatypelib.vbs can make it easy to register the PIA, add it to the GAC, and register the type library. Simply double-click the file name and provide the correct paths when prompted to complete the process. If you installed this SDK and Visual Studio .NET using the default installation paths, you should only need to change drive letters. If you did not install the products using the default paths, unexpected results may occur.

See Also

Previous Next