i have the following requirement: two folders A and B, for file a, if it exists in A, we build it into our install packet, otherwise we use file a in folder B as the default selection. how to implement this? please help.
how to auto-select source file when build a install packet
153 Views Asked by Dafan At
1
There are 1 best solutions below
Related Questions in WIX
- Word Addin not working in 64bit office but working on 32bit office
- How to define WIX agent requirement in TeamCity?
- WiX and custom extensions for primary output?
- executing an vb script from another project bud in the same solution in C#
- WiX – copy arbitrary files
- Is Component/@Guid attribute is a MUST in case of producing MergeModule
- WiX installer - change the install path
- Single Package Authoring
- Delay in custom action
- WiX - How to use a config file to decide which MSI to run?
- How to change Install button display text conditionally
- Service dependencies are causing my wix msi to force a reboot on uninstall
- WiX installer xml add folder
- wix and heat configure installation folder
- Cant find File System, Registry icon in WIX setup project in Visual Studio
Related Questions in FILECHOOSER
- GTK+3 file chooser in a non-GTK application
- How do I create a file chooser using Tkinter?
- I need to select or read only .config files via file chooser in java fx can any one help me
- JavaFX getting path of image store in Imageview with the help of filechooser need help D:
- nothing shown in java applet html file chooser
- how to use Storage Access Framework in a simple file upload code Button?
- FileChooser dialog action error
- FileChooserDialog in pygtk
- JavaFX 2.2 Get selected file extension
- How to display an image chosen with filechooser Javafx FXML
- Autocomplete in a Java File Chooser
- how to auto-select source file when build a install packet
- JavaFx: Message for empty file name in filechooser
- saving a file fiormat pdf file with java
- Kivy Python FileChooser()
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)
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?
I would say this job should be split between WiX and your build engine. Moreover, the most of the responsibility goes to build engine.
In WiX you can author the file in question (let's call it
a.txt) in the following way (it's a child of a Component element):Having that, you should pass the value of DataFolder variable to candle.exe (the compiler of WiX). This can be done in a couple of ways, via the command line or via the project settings (if you author *.wixproj). Let's say, you're doing it with the first option and your build engine is NAnt:
Note that it's just a sample for you to get the idea. WiX is also friendly with MSBuild.
The build engine is then responsible for picking up the correct
${data.folder}, whch is either A or B in your case.