Using Wix 3.7
 
I added Microsoft_VC80_CRT_x86.msm merge module to my wix setup according to 
http://wix.sourceforge.net/manual-wix3/install_vcredist.htm
 
I tested the new msi file on a clean WinXP SP3 machine. Installed the product 
and when I started the application I get "The application failed to initalize 
properly (oxc0150002). Click on Ok to terminate the application". 
I downloaded and installed  "Microsoft Visual C++ 2005 Redistributable Package 
(x86)" on the test computer and the application then works.
So I try to diff the usage of merge module and redistribuable. 
- Both approaches creates the folder 
"C:\WINDOWS\WinSys\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700"
- Both approaches add the same three files to the folder (msvcm80.dll, 
msvcp80.dll, msvcr80.dll)
- Diff'ed the files added by merge module and redistribuable and they are 
binary equal.
 
So why doesn't merge module work? 
 
I have added the wix configuration below.
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
 <Product Id="490F391C-336C-4a47-A7F6-587B2C92AC92" 
  Language="1033" 
  Manufacturer="MyCompany" 
  Name="MyName" 
  UpgradeCode="E5B47089-C70D-46bd-AA9C-D222CFE9A699" 
  Version="1.0.0.0">
   
  <Package Compressed="yes" InstallerVersion="300" />
  <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
  
  <Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="ProgramFilesFolder">
    <Directory Id="INSTALLLOCATION" Name="MyCompany">
     <Component Id="cmp829B7EDF9835ECFBEB6B7A5E00D6B29F" Guid="*">
      <File Id="filD32196FBAB143D1B642565E64AFE743C" KeyPath="yes" 
Source="C:\path\bin\MyLibrary.dll" />
     </Component>     
    </Directory>
   </Directory>
  </Directory>
  <DirectoryRef Id="TARGETDIR">
   <Merge Id="VCRedist" SourceFile="C:\Path1\Path2\Microsoft_VC80_CRT_x86.msm" 
DiskId="1" Language="0"/>                                     
  </DirectoryRef>
  <Feature Id="ProductFeature" Level="1" Title="MyTitle">
   <ComponentRef Id="cmp829B7EDF9835ECFBEB6B7A5E00D6B29F" />
    <MergeRef Id="VCRedist"/>
  </Feature>
 </Product>
</Wix>
                                          
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to