FILE: Install DCOM and MDAC Through a Windows Installer Package
This article was previously published under Q257604 SUMMARY The Microsoft Data Access Component (MDAC) merge module
(MDAC.msm) that is included in Visual Studio Installer 1.0 only detects the
presence of this system component. It does not install MDAC. This article
provides a sample executable file that encapsulates the MDAC installation with
a Microsoft Installer (MSI) package. MORE INFORMATION MDAC and DCOM are vital to many applications written for
the Win32 platform. A requirement of the
Application
Specification for Microsoft Windows 2000 for Desktop Applications (http://msdn2.microsoft.com/en-us/library/ms954115.aspx)
desktop applications is to use the Windows Installer. However, because MDAC and
DCOM redistributable merge modules do not exist, DCOM and MDAC installation
must be done outside of a Windows Installer .msi file. You can use this sample,
Wrapper.exe, as-is or modify it to meet custom needs.
The following file
is available for download from the Microsoft Download
Center: WrapperSetup.exe (http://download.microsoft.com/download/vstudio60ent/msi/3/win98me/en-us/wrappersetup.exe) Release Date: August
31, 2000For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591 (http://support.microsoft.com/kb/119591/EN-US/) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Command Line OptionsWrapper.exe command line switches are the same as the Windows Installer, Msiexec.exe. For example, the following command line would install and create a verbose log file:C:\Wrapper> Wrapper.exe /i MyMsi.MSI /l*v C:\Wrapper\MyLog.txt For more information, visit the following Microsoft Web site: Command Line Options (http://msdn2.microsoft.com/en-us/library/aa367988.aspx) To customize your wrapper and build in the command line parameters, modify the function call to RegWriteCmdLine in MTSetup.cpp as in the following example code: Directory StructureThe following directory structure is required by Wrapper.exe:
MDACWrapper.exe only checks for the presence of MDAC 2.1 or later. If a specific version is required for your application, you must customize the source code. The IsMDACPresent function in MDAC.cpp is the location of the check.Wrapper.exe will install the version of MDAC (MDAC_TYP.exe) that you place in the Wrapper.exe folder. For example, if you place version 2.5 of MDAC in the Wrapper.exe folder, version 2.5 will be installed. Several different versions of MDAC are available from: Universal Data Access Web Site (http://msdn.microsoft.com/dataaccess) You must be a local administrator on the computer in order to
install MDAC. DCOMDCOM must only be installed on computers running Windows 95. It is already present in Windows 98, Windows 98SE, Windows NT 4.0, and Windows 2000. The redistributable version of DCOM is available at the following Web site:DCOM95 for Windows 95, version 1.3 (http://www.microsoft.com/com/dcom/dcom95/dcom1_3.asp) Renaming the ExecutableIf you want to rename the executable file, do the following:
Installation AlgorithmWrapper.exe performs the following detection and installation tasks:
What's New in WrapperSetup.exe (6/21/2000 and later)
APPLIES TO
| Article Translations
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Back to the top
