I have a .wxs file for program installation. I want to pass a part of installation depending on the IIS version (for ex. execute if IIS verion > #10 set something and else if <= #7 set something ) and continue to install other parts.
Wix if and else if condition inside component element
1.2k views Asked by Bindya At
1
There are 1 answers
Related Questions in WIX
- Wix bundle of third party exe and new msi cant figure out detect conditions
- Getting 'Error writing to file' during WiX Toolset upgrade when changing installation scope
- Unable to format string in desired format - WiX
- wix toolset radio button condition
- How to Add custom dialog to Wix v4
- How to invoke UAC(Elevation shield) Prompt while trying to open bootstrapper bundle exe in WIX
- How do I use heat.exe with Visual Studio extension?
- Is anybody using WiX Toolset v5.0.0-rc.1?
- WixToolset v4 - Installation with scope "PerUser" fails when package NetFx462Redist is used
- Wix not writing to HKCU when run with a user needing admin login?
- WIX project Radio button value usage
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- Detect re-installation on rollback
- Update to Wix 3.14 from 3.11 get error MSB4181: The "MSBuild" task returned false but did not log an error
- Wix: Error LGHT0091: Duplicate symbol 'Property:WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED' found
Related Questions in WIX3.7
- Unit Testing of Deferred Custom Actions in wix
- Wix Bundle - How to include EXE and and support files
- Installer '.msi' Not Working Which Is Created By Using WIX
- Wix Setup Project Giving Error While Building
- Wix installer wrong path to the users folder
- How to Create MSI installer using Command Line with WIX
- Wix installer - Unable to delete Installation directory after uninstallation
- Trying to run the multiple powershell scripts from wix installer
- Wix Installer: Uninstall Issue with DLL
- why always vc_redist DetectCondition getting failed in wix code(.wxs)
- Custom Action to set INSTALLFOLDER path
- How to add application version to the MSI file properties?
- Verification link in email using wix
- WIx Installer: is there any way to auto close installer shield after successful installation
- Display custom error instead of WiX default error for "MainEngineThread is returning 1624"
Related Questions in WIX3.8
- WiX: WIX Logs show two INSTALL actions. What is the first one?
- WiX: Show a UI Dialog-Element after "InstallFinalize"
- Get message content from Twilio Message
- Wix: copy arbitrary file from msi-file directory
- Wix Installer won't build on buildserver
- wix custom action to remove http binding
- How to keep a configuration file when on upgrade but remove it on uninstall?
- Wix Bootstrapper without License UI
- Display installation summary in exit dialog in Wix installer
- How to set DisableModify attribute in Wix bundle during execution of bootstrapper
- Package existing exe and folder with Wix?
- The system cannot find the file "wixca.dll"
- wix - error CNDL0004: The file element contains an unexpected attribute "src" when running from the command line
- error CNDL0027 : The File/@Name attribute's value, is not a valid 8.3-compliant name
- wixtool set during team build gets light.exe System.UnauthorizedAccessException: Access to the path
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In Windows Installer, components are the smallest units of installation/removal. They are entities that can be part of multiple products. For a product, only a feature can be selected for installation or removal. (When no product's installed features need a component, it is removed. When a product has no installed features, it is removed.)
A component can be in multiple features. A feature can have a condition on it. (They aren't just for user selection in a dialog.) Features can be nested.
Putting it together, it seems that you need to conditionally select features.
In WiX, you can express features, conditions and component references as in this answer to a similar question.
You might use the WiX-provided IIS version detection in your conditions like this: