Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 936129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:15:50+00:00 2026-05-15T21:15:50+00:00

I have created a WiX installation package for a large program. The install package

  • 0

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:

<DirectoryRef Id="TARGETDIR">
  <Merge Id="VCRedistCRT" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_CRT_x86.msm" DiskId="1" Language="0"/>
  <Merge Id="VCRedistATL" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_ATL_x86.msm" DiskId="1" Language="0"/>
  <Merge Id="VCRedistMFC" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_MFC_x86.msm" DiskId="1" Language="0"/>
  <Merge Id="VCRedistMFCLOC" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_MFCLOC_x86.msm" DiskId="1" Language="0"/>
  <Merge Id="VCRedistOpenMP" SourceFile="C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_OpenMP_x86.msm" DiskId="1" Language="0"/>
</DirectoryRef>

<Feature Id="VCRedistCRT" Title="Visual C++ 9.0 CRT Runtime" AllowAdvertise="no" Display="hidden" Level="1">
  <MergeRef Id="VCRedistCRT"/>
</Feature>
<Feature Id="VCRedistATL" Title="Visual C++ 9.0 ATL Runtime" AllowAdvertise="no" Display="hidden" Level="1">
  <MergeRef Id="VCRedistATL"/>
</Feature>
<Feature Id="VCRedistMFC" Title="Visual C++ 9.0 MFC Runtime" AllowAdvertise="no" Display="hidden" Level="1">
  <MergeRef Id="VCRedistMFC"/>
</Feature>
<Feature Id="VCRedistMFCLOC" Title="Visual C++ 9.0 MFC LOC Runtime" AllowAdvertise="no" Display="hidden" Level="1">
  <MergeRef Id="VCRedistMFCLOC"/>
</Feature>
<Feature Id="VCRedistOpenMP" Title="Visual C++ 9.0 Open MP Runtime" AllowAdvertise="no" Display="hidden" Level="1">
  <MergeRef Id="VCRedistOpenMP"/>
</Feature>

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:15:51+00:00Added an answer on May 15, 2026 at 9:15 pm

    Thank you for the responses. The tip to check the event viewer was the magic piece. Apparently, there was an entry for an installation file that started with a space. For whatever reason, the WiX compiler allowed this, and the installer installed it, but when the COM component started up for the first time, something in the system or the installer decided this was not kosher, and raised an error. This particular file was completely unrelated to the COM registration. When I removed the space at the start of the name of the file, the problem went away.
    I am going to take Mr. Mensching’s advice and remove the advertising from the file. I was using code generated by one of the WiX tools (I don’t remember which one), and for some reason it chose to mark advertise=”yes” on the COM components. I definitely do not want the installer trying to do some kind of run-time installation on these COM components.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an installation package using Wix which installs a Windows service on
I have to create an installation package using Wix. If an admin user is
I have created a simple Wix 3 Merge Module in VS 2005 ( .wxs
We have an installer created using WIX. As part of this install we would
I have created a wix installer project which is working fine. It installs my
We have created a simple wix project for a basic windows application. Everything builds
I have a project where I create WiX (Windows Installer for XML) files, when
Hi I have a Wix (Votive) Visual Studio project which creates an MSI from
I have created an EDMX in visual studio 2010 SP1. It has been built
I have created a WiX project that installs a bunch of different EXEs and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.