I have a .NET program that I’ve written a Wix installer for. I want to be able to update from a pre-Wix version. To do this, I’d like to read from the installed program’s app.config file. This will save the user from having to manually retype in all of these values. Is there anyway to do this? Thanks!
Share
Neither MSI or WiX currently has built-in support for reading xml files, only writing. You’ll have to write a custom action to read the values in. ( Extend AppsSearch )
In addition to this, I highly suggest you follow the pattern described here and adapt it for XML instead of registry:
http://robmensching.com/blog/posts/2010/5/2/The-WiX-toolsets-Remember-Property-pattern