This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Assembly binding redirect.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Mar 23, 2012
02:05 PM
Assembly binding redirect.
In .NET you can use an XML formatted configuration file to make an assembly load a different version of dependent assembly by supplying a binding redirect element. This configuration file can apply to a specific application or machine wide with machine.config
http://msdn.microsoft.com/en-us/library/twy1dw1e(v=vs.71).aspx
The documentation states “Use one tag for each assembly.”
I am having a hard time making Install Shield’s “XML File Change” feature create binding redirects for multiple assemblies. There is also a problem with adding a binding redirect to a config file that already has multiple binding redirects (It tends to want to modify all the existing dependentAssembly blocks!).
Has anyone figured out how to deal with this problem yet?
What did you do? Could you make the XML File Change feature work or did you use a different approach?
This clearly is not a new problem:
http://community.flexerasoftware.com/search.php?searchid=2019226
http://msdn.microsoft.com/en-us/library/twy1dw1e(v=vs.71).aspx
The documentation states “Use one
I am having a hard time making Install Shield’s “XML File Change” feature create binding redirects for multiple assemblies. There is also a problem with adding a binding redirect to a config file that already has multiple binding redirects (It tends to want to modify all the existing dependentAssembly blocks!).
Has anyone figured out how to deal with this problem yet?
What did you do? Could you make the XML File Change feature work or did you use a different approach?
This clearly is not a new problem:
http://community.flexerasoftware.com/search.php?searchid=2019226
(1) Reply
Mar 28, 2012
05:58 PM
The short answer is “Yes”, Install shield’s “XML File Change” facility can be used to add binding redirect information to configuration files. You’ll need to understand XPath structure and functions. Here are the resources I used:
You will also need to know how “Xml File Change” works inside and out. Start with the IS documentation(search for xpath). However the only way you’ll truly understand how "XML File Change" works is to use the test feature (right click on XML file). Start simple and add more complexity.
Make sure you test both install and uninstall.
You may want to test well formed but incorrectly structured config files too.
http://www.w3schools.com/xpath/default.asp
http://zvon.org/xxl/XPathTutorial/General/examples.html
http://www.w3.org/TR/xpath/
http://zvon.org/xxl/XPathTutorial/General/examples.html
http://www.w3.org/TR/xpath/
You will also need to know how “Xml File Change” works inside and out. Start with the IS documentation(search for xpath). However the only way you’ll truly understand how "XML File Change" works is to use the test feature (right click on XML file). Start simple and add more complexity.
Make sure you test both install and uninstall.
You may want to test well formed but incorrectly structured config files too.