0

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?

Community
  • 1
  • 1
Vlad
  • 1,977
  • 19
  • 44
  • Do you want to change config files while installation of an installer that you made from InstallShield ? If yes, then there is an option of INI file chnages in InstallShield. You can try that. Using that you can change any config files while installation in Post-Install section. – Ajit Medhekar Mar 14 '16 at 07:21
  • The target are .Net app config files - in XML format. The guy responsible in my team for creating InstallShield installations said that it's possible: one should ask user to enter value V during installation process specify name of XML file, XPath and overwrite old value with value V. – Vlad Mar 14 '16 at 23:05

1 Answers1

0

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.

Christopher Painter
  • 54,556
  • 6
  • 63
  • 100