I’ve been trying to track down why my Wix Project is being relinked every 
single time I do a build even though nothing’s changed.

Eventually, I’ve tracked it down to the MFC100 merge modules.

I have  wxs file in my project: MFCMerge.wxs that contains this:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <?define MergeLoc="..\Merge Modules" ?>
    <Fragment>
        <EnsureTable Id="Verb"/>
        <EnsureTable Id="ProgId"/>
        <EnsureTable Id="MIME"/>
        <EnsureTable Id="Extension"/>
        <EnsureTable Id="Class"/>
        <EnsureTable Id="TypeLib"/>
        <DirectoryRef Id="INSTALLLOCATION">
            <Merge Id="atl" DiskId="1" 
SourceFile="$(var.MergeLoc)\Microsoft_VC100_ATL_x86.msm" Language="0"/>
      <Merge Id="crt" DiskId="1" 
SourceFile="$(var.MergeLoc)\Microsoft_VC100_CRT_x86.msm" Language="0" />
      <Merge Id="mfc" DiskId="1" 
SourceFile="$(var.MergeLoc)\Microsoft_VC100_MFC_x86.msm" Language="0" />
      <Merge Id="mfcloc" DiskId="1" 
SourceFile="$(var.MergeLoc)\Microsoft_VC100_MFCLOC_x86.msm" Language="0" />
    </DirectoryRef>

    <FeatureGroup Id="MFCDep" >
      <MergeRef Id="atl" />
      <MergeRef Id="crt"/>
      <MergeRef Id="mfc"/>
      <MergeRef Id="mfcloc"/>
    </FeatureGroup>
    </Fragment>
</Wix>

I then have this in my main.wxs file:
<Feature Id="MFCSupport" Level="1">
      <FeatureGroupRef Id="MFCDep"/>
    </Feature>

If I comment the above lines out in main.wxs I don’t see the rebuild every 
time, but if I do, I get a message in the build output mode with diagnostics 
switched on that says:
1>    Building target "Link" completely.
1>    Input file 
"C:\Users\Tony\AppData\Local\Temp\xy3bc3ot\MergeId.634601\F_CENTRAL_atl100_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D"
 does not exist.

The above file appears to be mentioned in 
C:\(...)\XXX.wixproj.BindContentsFileListen-US.txt

Maybe this rebuild often works because the temp files are not cleaned up, but 
this now causes problems as for some reason, the above temp folder disappears 
immediately after the build.  Is this a known problem?

Anthony Wieser
Wieser Software Ltd
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&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