title: Bizarre Install Dialog Showing Up After Running WiX Installation
body: <p>I have created a WiX installation package for a large program.  The install package includes the merge modules for the Visual C++ 9.0 files.  I need to include the merge modules for a COM DLL.  The installation runs just fine.  The first time I run the program, though, something odd happens.  The first time the COM DLL is called, the Windows install mechanism starts running.  An installation dialog pops up out of the blue.  It does whatever it needs to do for a little while, then it goes away and the program resumes its normal function.  This only happens the very first first time the COM DLL that needs the Visual C++ merge modules, and once the installer is done the program continues running without incident.  Why is this happening, and what can I do to prevent it?  Here is the WiX code for the merge modules:</p>
  
  <pre><code>&lt;DirectoryRef Id="TARGETDIR"&gt;
    &lt;Merge Id="VCRedistCRT" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_CRT_x86.msm" DiskId="1" Language="0"/&gt;
    &lt;Merge Id="VCRedistATL" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_ATL_x86.msm" DiskId="1" Language="0"/&gt;
    &lt;Merge Id="VCRedistMFC" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_MFC_x86.msm" DiskId="1" Language="0"/&gt;
    &lt;Merge Id="VCRedistMFCLOC" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_MFCLOC_x86.msm" DiskId="1" Language="0"/&gt;
    &lt;Merge Id="VCRedistOpenMP" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_OpenMP_x86.msm" DiskId="1" Language="0"/&gt;
  &lt;/DirectoryRef&gt;
  
  &lt;Feature Id="VCRedistCRT" Title="Visual C++ 9.0 CRT Runtime" AllowAdvertise="no" Display="hidden" Level="1"&gt;
    &lt;MergeRef Id="VCRedistCRT"/&gt;
  &lt;/Feature&gt;
  &lt;Feature Id="VCRedistATL" Title="Visual C++ 9.0 ATL Runtime" AllowAdvertise="no" Display="hidden" Level="1"&gt;
    &lt;MergeRef Id="VCRedistATL"/&gt;
  &lt;/Feature&gt;
  &lt;Feature Id="VCRedistMFC" Title="Visual C++ 9.0 MFC Runtime" AllowAdvertise="no" Display="hidden" Level="1"&gt;
    &lt;MergeRef Id="VCRedistMFC"/&gt;
  &lt;/Feature&gt;
  &lt;Feature Id="VCRedistMFCLOC" Title="Visual C++ 9.0 MFC LOC Runtime" AllowAdvertise="no" Display="hidden" Level="1"&gt;
    &lt;MergeRef Id="VCRedistMFCLOC"/&gt;
  &lt;/Feature&gt;
  &lt;Feature Id="VCRedistOpenMP" Title="Visual C++ 9.0 Open MP Runtime" AllowAdvertise="no" Display="hidden" Level="1"&gt;
    &lt;MergeRef Id="VCRedistOpenMP"/&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p>If I had to guess, it looks like the Visual C++ libraries are being installed "on first use;" that is, the feature is not fully installed until someone uses it.  I would think that would be impossible as the AllowAdvertise valuue is set to "no," but I'm not a WiX expert.</p>