Search code examples
installshield

How to modify C# standard config files during InstallShield installation?


how to modify C# standard app config files during InstallShield installation? Based on user answers. thank you.

Update: according to this article the only correct way is WIX. But InsatllShield is the corporate standard in our company. And that answer is dated 2014. Maybe nowadays InstallShield have some progress?


Solution

  • InstallShield has had XML changes (XPath based) support for atleast the past 12 years or so. In fact, I'd say it has better support then WiX because it also has a built in capability to search/read data from XML files also.

    Why is this important? Because MSI doesn't support persisting properties across transactions and you need the ability to read the value otherwise your custom value will get reset during repairs and upgrades.