How to add new components to a merge module by using Visual Studio .NET (827025)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Windows Installer
SUMMARYThis step-by-step article describes how to add new
components to a merge module by using Microsoft Visual Studio .NET. A merge
module is a standard feature of Microsoft Windows Installer that packages components
together with any related files, resources, registry entries, and setup logic.
You can use merge modules to install components that multiple
applications share. You cannot install merge modules directly. You must merge them into deployment projects. This article describes how to
create a merge module project in Visual Studio .NET, how to consume the merge
module in a Setup project, and how to add new components to the merge module by
using Visual Studio .NET. back to the
topRequirementsThe following list outlines the recommended hardware,
software, network infrastructure, and service packs that you need:
- Microsoft Windows 2000, Windows XP, or Windows Server 2003
- Microsoft Visual Studio .NET
This article assumes that you are familiar with the following
topics:
- Visual Studio .NET Setup projects
back to the topCreate a merge module
by using Visual Studio .NETTo create a merge module project by using Visual Studio .NET,
follow these steps:
- Start Visual Studio .NET.
- On the File menu, point to
New, and then click Project.
- Under Project Types, click Setup
and Deployment Projects.
- Under Templates, click Merge
Module Project.
- In the Name box, type
MyMergeModule, and then click
OK.
- In Solution Explorer, right-click
MyMergeModule, point to Add, and then click
File.
- In the Add Files dialog box, locate the
Msbind.dll file. This file is in the Program Files\Microsoft Visual
Studio .NET\Common7\Controls folder.
- Click msbind.dll, and then click
Open.
- In Solution Explorer, right-click
MyMergeModule, and then click
Build.
back to the topCreate a Setup project
that consumes the merge moduleTo create a setup project in Visual Studio .NET that consumes
the MyMergeModule merge module, follow these steps:
- On the File menu, point to
New, and then click Project.
- Under Project Types, click Setup
and Deployment Projects.
- Under Templates, click Setup
Project.
- In the Name box, type
MyApp, and then click OK.
- In Solution Explorer, right-click MyApp,
point to Add, and then click Merge
Module.
- In the Add Modules dialog box, locate the
MyMergeModule.msm file. This file is in the MyMergeModule\Debug folder.
- Click MyMergeModule.msm, and
then click Open.
- In Solution Explorer, right-click
MyMergeModule.msm, and then click
Properties.
- In the Properties window, expand
MergeModuleProperties.
- Click the Module Retargetable Folder
property, and then click Browse in the drop-down
list.
- In the Select Folder dialog box, click
Application Folder, and then click
OK.
- Click the Files property, and then click
the ellipsis button (...). The Files dialog box appears.
Notice that the Msbind.dll file appears in the Files
dialog box. - Click OK.
- On the File menu, click Save
All.
back to the topAdd new components to
the merge moduleTo add new components to the MyMergeModule merge module,
follow these steps:
- On the File menu, point to
Open, and then click Project.
- In the Open Project dialog box, locate the
MyMergeModule.sln file. This file is in the MyMergeModule folder.
- Click MyMergeModule.sln, and
then click Open.
- In Solution Explorer, right-click
MyMergeModule, point to Add, and then click
File.
- In the Add Files dialog box, locate the
Dbadapt.dll file. This file is in the Program Files\Microsoft Visual
Studio .NET\Common7\Controls folder.
- Click dbadapt.dll, and then
click Open.
- In Solution Explorer, right-click
MyMergeModule, and then click
Build.
back to the topVerify that the new
components have been added to the merge moduleTo verify that the new components have been added to the merge module,
follow these steps:
- On the File menu, point to
Open, and then click Project.
- In the Open Project dialog box, locate the
MyApp.sln file. This file is in the MyApp folder.
- Click MyApp.sln, and then click
Open.
- In Solution Explorer, right-click
MyMergeModule.msm, and then click
Properties.
- In the Properties window, click the
Files property, and then click the ellipsis
button.
Notice that the Msbind.dll file and the
Dbadapt.dll file appear in the Files dialog box. back to the
topREFERENCES For
additional information, click the following article number to view the article
in the Microsoft Knowledge Base: 307353
HOW TO: Create a Setup Package by Using Visual Studio. NET
For more information, visit the following
Microsoft Developer Network (MSDN) Web site: back to the
top
Modification Type: | Minor | Last Reviewed: | 5/23/2005 |
---|
Keywords: | kbHOWTOmaster kbhowto kbUpgrade kbsetup kbDeployment KB827025 kbAudDeveloper |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|