PRB: Visual Studio Installer Module Collection Failed to Build (306692)



The information in this article applies to:

  • Microsoft Visual Studio Installer 1.0
  • Microsoft Visual Studio Installer 1.1

This article was previously published under Q306692

SYMPTOMS

When you attempt to build a Visual Studio Installer project you may see the following error messages appear in the task list:
The module collection failed to build.

Build failed (class not registered.)

CAUSE

This error messages will be generated if the Mergemod.dll file has not been registered, or if it failed to register correctly.

RESOLUTION

To resolve these errors, you must follow these steps:
  1. If you currently have Visual Studio Installer open, you should save your current project and exit the tool.
  2. Locate Mergemod.dll to make sure it is in the correct folder. It should reside in the folder

    X:\Program Files\Common Files\Microsoft Shared\MSI Tools

    where X is your drive letter.

    NOTE: If this file is missing or is corrupt you will need to replace it with a copy from the original source.
  3. To register Mergemod.dll, type the following at a command prompt:

    regsvr32 X:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll

  4. Restart Visual Studio Installer and build your project.

REFERENCES

Microsoft Visual Studio Installer
http://msdn.microsoft.com/vstudio/downloads/tools/vsi11/default.aspx

For additional information on Visual Studio Installer compilation errors, click the article number below to view the article in the Microsoft Knowledge Base:

281650 BUG: Cannot Compile VSI Project - 'Install Dialog' Errors


Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbprb KB306692