I am quite new in creating setup project using .wxs file in .NET project. I knew that by default when you run MSI file it creates folder with this project and it's reference files (dll, exe, etc...) in C:\Program Files (x86). My question is, can I change this location in my .wxs file to another using XML.
How to change directory in wxs file where all dll and other files will be installed?
1.7k Views Asked by Alex 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 WINDOWS-INSTALLER
- How can I install an MSI using python's subprocess, passing an install directory containing a space?
- Upgrading MSI throwing 'method not found' error
- Windows installer - run a subsequent time, select "modify" and run specific steps
- Single Package Authoring
- WiX - How to use a config file to decide which MSI to run?
- Want to create mysql user in installation with full Privileges In NSIS
- How to change Install button display text conditionally
- error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010
- Service dependencies are causing my wix msi to force a reboot on uninstall
- Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7
- Change the installation path with msi API
- After installation of website it changes Application Pool of web application that follows it.
- Getting strange errors when installing visual studio 2015 community rc
- Creating a silent installer for a MSI
- install msi with a product code through msiexec
Related Questions in WIX-EXTENSION
- WIX Feature Tree with Checkbox selection
- How do I modify a CDATA Node in WiX with the XmlFile element?
- Wix: Is there any wix command to create database user?
- How to change directory in wxs file where all dll and other files will be installed?
- WIX enable Windows feature
- Wix Managed bootstrapper
- How I can display localized WiX UI in my managed bootstrapper?
- WiX Minimal UI shows first lines empty with Arabic text
- Is it possible to have multiple condition (bal) for a wix bundle?
- File missing after upgrade
- How to reference WixDifxAppExtension in a .wixproj file?
- How to include heat generated wsx files in a smart way in wix installer?
- Wix - UI sequence broken migrating from VS ultimate 2010 to WixEdit
- Wix Toolset: How to reference custom wix extension in wix project
- Visual Studio doesn't release files used in WiX Extension
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?
ConfigurableDirectory: You can use the
ConfigurableDirectoryattribute of the Feature Element to set a configurable feature directory. See down the page in the screenshot section here: How to assign path value to Directory in WIX?.Mock-up only:
Note: I am basing myself on the standard WiX Mondo dialog set. To hook up the Mondo dialogs, see this answer. Essentially, add reference to
WixUIExtension.dlland insert the<UIRef Id="WixUI_Mondo" />element. This will compile a default WiX dialog set into your MSI.Remember Property: Note that you must persist the custom directory location yourself to the registry and read back for major upgrades or else your whole product gets "moved" during upgrades (I know, it is weird). This persisting does not happen auto-magically in any way that I know about. You can persist the property and read it back using the "Remember Pattern" as described by WiX creator and benevolency Rob Mensching here: The WiX toolset's "Remember Property" pattern.
Implementation Tip: Testing the read-back of the directory property for major upgrade scenarios can be a bit fiddly. If you create a test project in Visual Studio using Votive you can use the trick to just compile version 1 of your MSI (now suffix your MSI file in the build output folder with
_Version1.0.0.msior similar), and then kick up one of the first three digits of the version number property and build an upgrade version (suffix with_Version2.0.0.msior similar). Then you install in sequence selecting a custom installation directory and check whether your second setup correctly detects the modified path. Just use a mockup or test harness project with a single component in it to get this working, or else you could drive yourself mad if you have to compile your whole setup. Then just inject your finished markup into the main project. Obvious, yes - just mentioning.Some Further Links: