Silent Deployment & Removal with Wix MSI for Your Web Application
Silent Deployment & Removal with Wix MSI for Your Web Application
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 use WIX MSI to do a silent install or uninstall of a web app
Written by Renato Ivanescu · June 20th, 2023
When it comes to installing or uninstalling an application package, the level of user interaction can vary based on your specific needs. In cases where you prefer to minimize user involvement, a convenient solution is to opt for a silent install or uninstall. With a silent installation, users are spared the hassle of navigating through an installation wizard and repeatedly clicking the “Next” button.
This approach proves particularly beneficial in scenarios where you need to perform multiple installations or uninstallations, such as in enterprise settings or when deploying software across numerous devices.
If you’re using WiX and you want to learn how to create an MSI package for a silent installation or uninstallation of an application, this article is exactly what you’re searching for.
How to silently install and uninstall the MSI package
When you are creating an MSI installation package with WiX, you have two options for performing a silent install and uninstall:
1. Do not add any UI/UIRef elements to the installer package.
If you use WiX to create an MSI package, it will not have a built-in user interface by default (except for a simple progress dialog).
To add an user interface to an MSI created with WiX, you have to use the WiXUI library. This is the standard user interface that WiX Toolset comes with. When creating a setup project, this library is not referenced by default. So, you will have a silent install if you do not add a reference for this library.
2. Use command line arguments.
This option is available regardless of the software used to create MSI packages; therefore, it is available for MSI packages created with WiX. MSIs use msiexec.exe to install and uninstall the setup and accept the following silent install standard parameters:
- /quiet: quiet mode → no user interaction required
- /passive: unattended mode → the installation only shows a progress bar
- /qn → specifies there is no UI during the installation process
A regular command line used to install an MSI silently should look like this:
msiexec /i <AppName.msi> /qn /l*v install.log
Copy
You can use the /l*v install parameter to create an installation log. As the GUI is hidden, the installation log helps you identify the errors that can occur during the installation process.
If your installation package uses an EXE bootstrapper, you have to use a specific command line to launch the MSI. This command line can use the same parameters as when the MSI is launched with msiexec. The parameters will be passed to the MSI package.
Keep in mind that you must use an elevated command prompt to silently install an MSI package. Otherwise, the installation will fail as you do not have the privileges to complete the installation. To achieve this, use the Run as administrator context menu option.
How to make the MSI installer package silent using Advanced Installer?
When using Advanced Installer to create an MSI package, you have the opportunity to enhance the user interface (UI) with attractive and robust themes. However, if you intend to execute a silent installation, you can effortlessly achieve this by enabling the “Limit to basic user interface“ option. By selecting this option, the MSI will perform a silent install, displaying only a simple progress indicator and error handling functionality.
You can find this option on the Install Parameters page, under the Install Options section. Once enabled, a progress bar will be displayed throughout the installation process, ensuring a seamless experience for the user. With this setting in place, users won’t need to perform any actions during the installation, as it will proceed automatically in the background.
Conclusion
To perform a silent install using WiX without command-line arguments, you can omit or avoid adding a reference to the WiXUI library. However, with Advanced Installer, you can simply check the option available through the GUI to limit the MSI installation to a basic user interface.
Discover the Advanced Installer UI level settings by watching the below video:
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] In 2024, Escape From Ennui with Humor Top 20 Funny Faces in Social Media Jail
- 2024 Approved Extended Motion Systems Appraisal
- 2024 Approved Innovative Photography Vertical Vistas via Mobile
- 2024 Approved The Aurora HDR Experience Is It Transformative?
- Changing File Dates in Windows: A Practical Overview
- How-To: Snapping Windows UAC Alerts
- New In 2024, Upgrading Your Edit Why Final Cut Pro Outshines Final Cut Express
- Tech News Recap: What to Expect From the Latest Phone Launches by Google and Samsung This Week
- The Advantages of Choosing a Smartphone with E-Ink Technology: A Personal Perspective
- The Concept of AI Singularity Explained: Reality Check.
- The Hidden Costs of Mining Bitcoin on Your Personal Computer
- The Ultimate Top 10 Reading List, Chosen by Our Community
- Top 5 Reasons Artificial Intelligence Assistants Haven't Won Me Over: Insights and Perspectives
- Transforming AI Art with Simple Tweaks: Unlock Potential Using These Essential 8 Midjourney Commands
- Transition Time: Embracing Perplexity, the Innovative AI-Driven Search Platform
- Updated 2024 Approved Vintage Video Magic A Step-by-Step Guide to VHS Effects in Final Cut Pro
- Windows Users, Explore These 8 Great Video Editors
- Title: Silent Deployment & Removal with Wix MSI for Your Web Application
- Author: Donald
- Created at : 2024-09-28 19:34:17
- Updated at : 2024-10-03 16:47:55
- Link: https://some-tips.techidaily.com/silent-deployment-and-removal-with-wix-msi-for-your-web-application/
- License: This work is licensed under CC BY-NC-SA 4.0.