PRB: Visual Basic MMC Snap-In Does Not Install as Expected from the Platform SDK (296111)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q296111

SYMPTOMS

When you try to install the Visual Basic Microsoft Management Console (MMC) Snap-In from the Platform SDK October 2000 Edition, the installation does not succeed if less than a full installation is selected. No items are added to the Visual Basic 6.0 New Project dialog box selections, nor are they added to the Visual Basic Project References/Components under the Project menu.

CAUSE

The individual installation of the Visual Basic MMC Snap-In does not install and register all of the required files for the Visual Basic MMC Snap-In.

RESOLUTION

To correctly install the Visual Basic MMC Snap-In, follow these steps:
  1. When you do the installation, select a custom installation and choose these items:
    • Microsoft Platform SDK/Sample Code/Management Samples/Microsoft Management Samples
    • Microsoft Platform SDK/Redistributable Components/Microsoft Management Console
  2. Copy the following files from the Platform SDK CD-ROM to C:\Program Files\Microsoft Platform SDK\Bin:
    • Mmcproxy.dll
    • Mssnapr.dll
    • Mssnapd.ocx
  3. Click Start, click Run, and register each of the files (alter if you did not use the default installation location for the Platform SDK):
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Bin\mmcproxy.dll"
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Bin\mssnapr.dll"
    • R egsvr32 "C:\Program Files\Microsoft Platform SDK\Bin\mssnapd.ocx"
  4. Navigate to the installation of the Platform SDK and locate the Visual Basic folder within the Samples folder. The default location is:

    C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\

    Within this folder you will find these five folders:

    ComDetect
    DriveStats
    FileExplorer
    FileViewerExtension
    Template

  5. Each of these folders contains information that is needed in order to correctly install and run a snap-in project type. In each of the first four folders there is one .dll file that must be registered. Click Start, click Run, and run the following commands (alter if you did not use the default installation location):
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\ComDetect\ComDetectProj.dll"
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\DriveStats\DriveStatsProj.dll"
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\FileExplorer\FileExplorer.dll"
    • Regsvr32 "C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\FileViewerExtension\FileViewerExtenstion.dll"
  6. Copy all the files that are in the

    \Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\Template\

    folder to the

    \Microsoft Visual Studio\VB98\Template\Projects\

    folder. Note: There are five project files to copy.
The snap-in project will now be available in the Visual Basic integrated development environment.

REFERENCES

For more information about Visual Studio products, including links to frequently asked questions and updates, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbprb kbSnapIn KB296111