Which version of WiX does this problem occur with? Please provide the full
version number.

Which operating system is the problem happening with?

Which Platform SDKs and Windows Installer SDKs do you have installed? (This
might have installed a different version of the merge library.)

Are the modules read-only? Does it work if you make them writeable? (I don't
know whether this is required, I'm just guessing - I've encountered tools
that open files read/write when reading only was required.)

That list of merge modules is... odd. WinHTTP 5.1 is supported on Windows
2000, Windows XP and Windows Server 2003 and is part of the latest service
packs on all those operating systems. None of them require MDAC 2.5, DCOM95,
OLEAUT32.DLL updates (Windows 2000 came with MDAC 2.5, DCOM95 only applies
to Windows 95) and indeed a lot of the DLLs listed are under System File
Protection on these systems. Did you perhaps pick these dependencies up from
Visual Basic 6's Package & Destroy Wizard? [1] It tended to pick up a
complete dependency tree without regard for what should really be
distributed.

I'm not even sure where you got a merge module for WinHTTP 5.1 from, because
the documentation states that the above operating systems (2000 SP3, XP SP1,
Windows Server 2003) are the only way to obtain it, and that a merge module
is *not* available.
(http://msdn2.microsoft.com/en-us/library/aa384086.aspx.)

[1] Apologies for bad pun. Too much experience with the result of deploying
a P&DW project (especially one built on a later platform and deployed on an
older one: result = trashed system).

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Jaworski
Sent: 28 January 2008 19:03
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Microsoft's Merge Modules and COM problem in WiXv2

I have prepared my installation configuration and it has been working
until I have added some Microsoft's merge modules:

Merge modules are placed in Fragment wxs file:
----------------------------------------------------------------------------
-----
<Fragment>
    <DirectoryRef Id ="CommonFilesFolder">
 ...
 <Merge Id="COMCAT.3207D1B0-80E5-11D2-B95D-006097C4DE24"
SourceFile=".\ThirdPart\MergeModules\COMCAT.msm"
Language="$(var.language)" DiskId ="1"/>
.... (other merge modules)...
</DirectoryRef>
    <Feature Id="msm" Title ="Msm" Level="1">
      <MergeRef Id="COMCAT.3207D1B0-80E5-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="COMCT232.D4A3A9E0-AA55-11D2-B97F-006097C4DE24"/>
      <MergeRef Id="COMCT332.64768830-83DC-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="COMCTL32.3207D1B4-80E5-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="COMDLG32.576D64B0-7413-11D2-B954-006097C4DE24"/>
      <MergeRef Id="DAO360.5B60FF9F-851D-11D4-A752-00B0D0428C0C"/>
      <MergeRef Id="DBGRID32.7EBEDD17-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="DBLIST32.7EBEDD18-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="DCOM95.6FC97964-2511-11D4-BB8A-00C04F20D375"/>
      <MergeRef Id="isapi3_files.9FA5FA94-DD4E-4DEE-A6B4-A24550643C54"/>
      <MergeRef Id="MCI32.7EBEDD1A-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MDAC25.5D1BD0D5-2526-11D4-BB8A-00C04F20D375"/>
      <MergeRef Id="MSADODC.7EBEDD1B-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSBIND.7EBEDD1C-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSCHRT20.7EBEDD1D-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSCOMCT2.3207D1B6-80E5-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="MSCOMCTL.3207D1B9-80E5-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="MSCOMM32.7EBEDD1E-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSDATGRD.7EBEDD20-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSDATLST.7EBEDD21-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSDATREP.7EBEDD22-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSDERUN.7EBEDD24-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSFLXGRD.7EBEDD26-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSHFLXGD.7EBEDD27-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSINET.7EBEDD29-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSMAPI32.7EBEDD2C-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSMASK32.7EBEDD2D-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSRDC20.7EBEDD30-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSRDO20.7EBEDD31-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSSTDFMT.7EBEDD3D-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="MSVBVM50.7DD453CA-76BD-40F2-8F85-FA7DFA0D244D"/>
      <MergeRef Id="MSVBVM60.1E64E430-36E0-11D2-A794-0060089A724B"/>
      <MergeRef Id="MSWINSCK.8BB4B550-AA69-11D2-B980-006097C4DE24"/>
      <MergeRef Id="msxml4.05BB8E07-3148-40FB-994C-F95E667DEB3D"/>
      <MergeRef Id="OLEAUT32.8C0C59A0-7DC8-11D2-B95D-006097C4DE24"/>
      <MergeRef Id="PICCLP32.7EBEDD43-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="soap3_core.48DBA0A2-C4F4-4965-A43B-35F4EA28F53E"/>
      <MergeRef Id="SYSINFO.7EBEDD45-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="TABCTL32.7EBEDD46-AA66-11D2-B980-006097C4DE24"/>
      <MergeRef Id="tlbinf32.EFA6527E-5F11-11D5-AFDF-00D0B73CE9BC"/>
      <MergeRef Id="winhttp51.45EB9D0B-5C17-4F8A-8423-AF7DE2F8CF9C"/>
    </Feature>
  </Fragment>

In main.wxs file there is:
...
<Directory Id="ProgramFilesFolder" LongName="Program Files" Name="PROGRF">
                                <Directory Id ="CommonFilesFolder"
LongName="Common Files" Name="CommonF"/>
</Directory>
...
<Feature Id="MainFeature" Level="1">
....
   <FeatureRef Id="msm"/>
</Feature>
...
---------------------------------------------------------
After build I have received:
--------------------------------
light.exe : error LGHT0001 : Error HRESULT E_FAIL has been returned
from a call to a COM component.

Exception Type: System.Runtime.InteropServices.COMException

Stack Trace:
   at Microsoft.Tools.WindowsInstallerXml.IMsmMerge2.Merge(String
feature, String directory)
   at Microsoft.Tools.WindowsInstallerXml.Binder.MergeModules(String
databasePath, Output output)
   at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)
--------------------------------
What have I done wrong? At this stage there is no other COMs attached.
MM's GUIDs are received from MSM file by right_click>Property>Summary.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to