Implementing Significant Enhancements in MSI Packages with the Help of WiX Toolset
Implementing Significant Enhancements in MSI Packages with the Help of WiX Toolset
Inno SetupWiX ToolsetInstallShieldMSIX Packaging Tool
Check your inbox and confirm the
subscription
Exclusive Newsletter
Exclusive Newsletter
Get the latest WiX insights direct to your inbox. Subscribe now!
Disclaimer: This post includes affiliate links
If you click on a link and make a purchase, I may receive a commission at no extra cost to you.
How to create major upgrades for MSI packages using WiX Toolset
Deploying major upgrades for an MSI package created with WiX Toolset is simple. However, there are a few boxes you need to check to make sure you’re doing it properly. We’ll share them with you in this article!
What makes major upgrades different from patches?
Unlike patches, major upgrades require a complete reinstallation of the application. When the application is upgraded, the old version is completely removed from the system, and then the new version is installed.
Every major version of an application is treated as a separate application by the OS, and according to Windows Installer standards, its MSI must have a unique product code.
How to implement a major upgrade using WiX Toolset
To implement a major upgrade in WiX Toolset, you need to keep some things in mind.
1. In the Product element, the ID should remain a wildcard. This ensures that the MSI package will generate a different product code each time we build it.
2. The UpgradeCode should remain constant, in order to correctly link the different versions of the package.
Here is an example of a proper Product element:
Copy
3. To handle changing any version of the product, you have to add the MajorUpgrade element in the Product element, as follows:
Copy
This addition ensures that even version 1.0.0.1 is going to be perceived as a major upgrade. Otherwise, you may see multiple side by side installations of your application in Programs and Features.
Using Advanced Installer Approach to Handle Major Upgrades
WiX toolset approach to perform a major upgrade to an MSI package requires adding new code to your XML file.
But, if you want to make this process smoother, Advanced Installer enables you to do that directly from its GUI without writing any code. Here’s how you can achieve it:
Before getting started, make sure you have a backup copy of the project file before beginning to edit the.AIP project. This is known as the “old.AIP Project.”
1. Increment the “Version” from the “Product Details” section by going to the “Product Details” page:
2. Customize the new version of your software by making the necessary changes to the Installer Project.
Keep in mind that the resources of the new version are all of your application’s resources, not just those that are modified by this upgrade installation.
3. Generate a new Product Code by clicking “Generate new”
And you’re done.
Watch the video below to learn how you can complete this task more easily with Advanced Installer:
Conclusion
As you can see, WiX offers you the capability to handle major upgrades by using the MajorUpgrade element within the XML-based definition file. But that is error-prone.
If you need an easier and foolproof solution, then you can use Advanced Installer’s GUI.
Which one do you prefer? Let us know in the comments.
Advanced Installer #1 alternative to the WiX Toolset
We decided to focus on our main goal to save precious time of our developers.
HANS-LEO TEULINGS
PHD – CEO, NEUROSCRIPT, LLC
You might find useful:
- CAB Embedding Options in MSI
- Updated installers in WiX Toolset
- Custom Actions In WiX Toolset
- Windows Services with WiX Installer
- Set WiX Installer Version to the Current Build Version
- Remove Files and Folders when Uninstalling with WiX
- How to set a WiX Toolset custom action to run only on uninstall
- How to create non-advertised shortcuts for all users / per machine with WiX Toolset
- How to Remove Files on Uninstall Using WiX Toolset
- How to create major upgrades for MSI packages using WiX Toolset
- How to pass CustomActionData to a CustomAction using WiX
- How to build an installer without a license page using WiX Toolset
- How to create a WiX KeyPath attribute
- How to Create a Desktop Shortcut using WiX Toolset
- How to Use WiX MSI to Update an Installed Application
- How to correctly set the install folder in Wix
- WiX Toolset Visual Studio Extension
- How to create a custom dialog in WiX for user input
- How to create an MSI installer with WiX
- How to use WIX MSI to do a silent install or uninstall of a web app
Get the most from packaging with Advanced Installer
Try the 30-day fully-featured edition absolutely free!
No credit card required
Also read:
- [New] 2024 Approved How to Enhance Networked Stream Quality with VLC
- [New] Becoming a Savvy User of Google Photos
- 2024 Approved Apex Fusion Hubs All-in-One 4K Multi-Touch Desktops
- ABBYY Integration Launches at Electionz.com for Enhanced Data Processing
- ABBYY Maintains Top Spot in the Smart Automation Industry
- ABBYY's Technological Mastery: Skyrocketing Profits with a 60% Increase, Endorsed by the Esteemed IDC MarketScape Analysis
- Automated Traffic Management with Cookiebot Technology
- Automated with Cookiebot: Streamlining Your Website's Data Collection
- Boosting Website Personalization Using Advanced Cookiebot Solutions
- How to Mirror Apple iPhone 15 Pro Max to Windows 10? | Dr.fone
- In 2024, Unlocking Made Easy The Best 10 Apps for Unlocking Your Xiaomi Mix Fold 3 Device
- Seamlessly Blend Music with Visuals in Premiere Pro for 2024
- The Essential UAV Upgrade Kit - Must-Haves for the Modern Pilot for 2024
- Title: Implementing Significant Enhancements in MSI Packages with the Help of WiX Toolset
- Author: Donald
- Created at : 2024-10-02 17:24:32
- Updated at : 2024-10-03 17:39:43
- Link: https://some-tips.techidaily.com/implementing-significant-enhancements-in-msi-packages-with-the-help-of-wix-toolset/
- License: This work is licensed under CC BY-NC-SA 4.0.