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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:06:30+00:00 2026-06-18T12:06:30+00:00

I need to configure my WiX project to be able to install multiple minor

  • 0

I need to configure my WiX project to be able to install multiple minor versions of the product. IE: I can have 1.0, 1.1 and 1.3 installed. If I try to install 1.2, it will work, but if I try it with 1.1, it will uninstall the previous 1.1 installation before proceeding.

So far, this is what I have in my Upgrade tag:

<Upgrade Id="$(var.UpgradeCode)">
    <UpgradeVersion Minimum="$(var.MajorMinorVersion)" IncludeMinimum="yes" 
        Maximum="$(var.VersionNumber)" IncludeMaximum="no" Property="OLDERMINORFOUND"/>
</Upgrade>

UpgradeCode is a guid defined in my wxi file and MajorMinorVersion is the same as VersionNumber, but with the build at 0 (1.1.0 when the version is 1.1.12).

I’m guessing that I have two possibilities:

I make another UpgradeVersion tag or update the current one to have the maximum at the next minor version and exclude it from the search:

<UpgradeVersion Minimum="$(var.MajorMinorVersion)" IncludeMinimum="yes" 
        Maximum="$(var.NextMinorVersion)" IncludeMaximum="no"/>

Using a custom action to set NextMinorVersion somehow. Maybe using a property instead.

Or, change the UpgradeCode manually each time the minor version changes. Or have the first few characters of the guid represent the version and the rest be unique? I doubt that’s a good idea though…

So basically, what would be the best way to accomplish this, in the hopes of having only one setup project for all versions?

EDIT

I’ve looked into the MajorUpgrade tag, but I don’t think I can configure it to have many minor versions at the same time. Any light on this is appreciated.

I’ve also looked into making a preprocessor extension that would manipulate the version number using functions, so I could do this:

<Upgrade Id="$(var.UpgradeCode)">
    <UpgradeVersion Property="OLDERMINORFOUND"
        Minimum="$(var.MajorMinorVersion)" IncludeMinimum="yes" 
        Maximum="$(myprefix.NextMinor($(var.VersionNumber)))" IncludeMaximum="no"/>
</Upgrade>

See my answer for details.

  • 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-18T12:06:31+00:00Added an answer on June 18, 2026 at 12:06 pm

    So I wrote an extension as per the WiX manual (Part 1 and Part 2).

    I made a preprocessor extension that takes a version number string (ex: 1.2.3.4) and manipulates the version by parsing and splitting the string.

    So now I can write this in my .wxs file:

    <Upgrade Id="$(var.UpgradeCode)">
        <UpgradeVersion Property="SAMEMINORFOUND" OnlyDetect="no"
            Minimum="$(var.MajorMinorVersion).0" IncludeMinimum="yes" 
            Maximum="$(version.NextMinor($(var.VersionNumber)))" IncludeMaximum="no" />
        <UpgradeVersion Property="OLDERVERSIONFOUND" OnlyDetect="yes"
            Maximum="$(var.MajorMinorVersion).0" IncludeMaximum="no"/>
        <UpgradeVersion Property="NEWERVERSIONFOUND" OnlyDetect="yes"
            Minimum="$(version.NextMinor($(var.VersionNumber)))" IncludeMinimum="yes"/>
    </Upgrade>
    
    <InstallExecuteSequence>
        <RemoveExistingProducts After="InstallValidate"/>
    </InstallExecuteSequence>
    

    Where version.NextMinor is a call to my preprocessor extension.

    So my installer will only detect installations of the product unless the minor versions match, where it will be uninstalled.

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

Sidebar

Related Questions

I have an haproxy 1.4 installed and I need to configure a reverse proxy
I have a windows application (C#) and i need to configure it to run
In my program I need to programmatically configure an ApplicationContext. Specifically, I have a
What's the code syntax, and what all do I need to install and configure,
I have a remote server configured on archlinux and I need to install the
I have created the application in which I need to configure the connection pool.In
My application can run on different environments. I need configure MY data model per
I have a situation where I need to configure existing client data to address
I have a requirement where i need to configure a Spring based application to
I need to configure a Quartz.NET instance using Spring.NET. I haven't been able 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.