Menu
  • HOME
  • TAGS

How can I convert this InstallScipt code to C#?

c#,installscript,installscript-msi

Yes, this is simply opening an XmlDocument, finding a specific node and updating its value before saving the file again. The code is along the lines of (untested, typed from memory) var xml = new XmlDocument(); xml.Load(szCryptomaticConfigFile); var node = xml.SelectSingleNode(szXPath); node.Value = CRYPTOMATIC_SETTINGS_VALUE xml.Save(szCryptomaticConfigFile); ...