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 7952933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:00:45+00:00 2026-06-04T03:00:45+00:00

I am wanting to install files during a wix install conditionally whether a command

  • 0

I am wanting to install files during a wix install conditionally whether a command line parameter has been set

e.g. I have the following file, which only installs if a DEBUG flag has been set

    <Component Id="file.pdb" Guid="SOME-GUID">
       <Condition>DEBUG</Condition>
       <File Id="file.pdb" Source="file.pdb" KeyPath="yes" Vital="no" />
    </Component>

I have added the DEBUG property and read it in from the command line. The File never installs though, I am perplexed as to why?

  • 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-06-04T03:00:46+00:00Added an answer on June 4, 2026 at 3:00 am

    Solved the issue. Below is an explanation of what I was doing wrong and what I did to solve it

    I had created an installer (.msi) and was using the following cmd line args to start it up

    msiexec -i prog.msi DEBUGPROPERTY=True

    I had several merge modules with components which would install depending on whether this property was set which were getting the property injected into them like so…

    <Merge
        Id="SomeID"
        Language="1033"
        SourceFile="Module.msm"
        DiskId="1">
        <ConfigurationData
          Name="debugProperty"
          Value="[DEBUGPROPERTY]" />
    

    What I was missing was in the merge modules (.msm) i needed the following code

        <Configuration Name='debugProperty' Format='Text' DefaultValue='[DEBUGPROPERTY]'/>
        <Substitution Table='CustomAction' Row='setDebugProperty' Column='Target' Value='[=debugProperty]'/>
        <CustomAction Id='setDebugProperty' Property='DEBUGPROPERTY' Value='[DEBUGPROPERTY]'/>
    
        <InstallExecuteSequence>
                <Custom Action='setDebugProperty' Before="LaunchConditions">1</Custom>
        </InstallExecuteSequence>
    

    This allowed me to access the property DEBUGPROPERTY inside this module so i could restrict whether a file was installed at install time or not, like so

    <Component Id="File.pdb" Guid="SOME-GUID">
        <Condition>DEBUGPROPERTY</Condition>
        <File Id="File.pdb" Source="File.pdb" KeyPath="yes" Vital="no" />
    </Component>
    

    This now works, and allows me to install .pdb files during an install if i include this argument.

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

Sidebar

Related Questions

I have tried multiple times, but never have been able to install scipy via
I am not a Unix guy, so I have been trying to install openCV
I have created application installer using Wix. I have a ProgressBar control present on
During an install of PostgreSQL 9.1.2 on my Windows 7 64-bit Home Premium box,
I have a small rails app I got all gung-ho on tonight wanting to
I am trying to install node.js following instructions. Just installed Homebrew. I tried this.
we have a .net windows forms application and for years we have been using
I am wanting to install CodeIgnitor on my hosting account, but I'm a little
I am wanting to have presence shown on my site for the users logged
Before you ask, yes, I have a very good reason for wanting something to

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.