Microsoft KB Archive/296111

{|
 * width="100%"|

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

 * }

Q296111

-

The information in this article applies to:


 * Microsoft Platform Software Development Kit (SDK)

-

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:

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

Copy the following files from the Platform SDK CD-ROM to C:\Program Files\Microsoft Platform SDK\Bin:


 * Mmcproxy.dll
 * Mssnapr.dll
 * Mssnapd.ocx

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 &quot;C:\Program Files\Microsoft Platform SDK\Bin\mmcproxy.dll&quot;
 * Regsvr32 &quot;C:\Program Files\Microsoft Platform SDK\Bin\mssnapr.dll&quot;
 * Regsvr32 &quot;C:\Program Files\Microsoft Platform SDK\Bin\mssnapd.ocx&quot;

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 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 &quot;C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\ComDetect\ComDetectProj.dll&quot;
 * Regsvr32 &quot;C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\DriveStats\DriveStatsProj.dll&quot;
 * Regsvr32 &quot;C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\FileExplorer\FileExplorer.dll&quot;
 * Regsvr32 &quot;C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\MMC\Visual Basic\FileViewerExtension\FileViewerExtenstion.dll&quot;

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.