using System; using System.ComponentModel; namespace InstallerEditor { /// <summary> /// Tag component of type msi /// </summary> public class ComponentMsi : Component { public ComponentMsi():base("msi") { m_package = "#APPPATH\\mysetup.msi"; } private string m_package; [Description("Specifies the path to the msi package to execute when installing this component. Can contain path constant (see Help->Path Constant). (REQUIRED)")] public string package { get{return m_package;} set{m_package = value;} } private string m_cmdparameters; [Description("Specifies the command line parameters for the msiexec program. Can contain \" char and path constant (see Help->Path Constant). See MSDN for the command line you can use with Windows Installer. (OPTIONAL)")] public string cmdparameters { get{return m_cmdparameters;} set{m_cmdparameters = value;} } protected override void OnXmlWriteTagcomponent(XmlWriterEventArgs e) { base.OnXmlWriteTagcomponent (e); e.XmlWriter.WriteAttributeString("package",m_package); e.XmlWriter.WriteAttributeString("cmdparameters",m_cmdparameters); } protected override void OnXmlReadTagcomponent(XmlElementEventArgs e) { base.OnXmlReadTagcomponent (e); if (e.XmlElement.Attributes["package"] != null) m_package = e.XmlElement.Attributes["package"].InnerText; if (e.XmlElement.Attributes["cmdparameters"] != null) m_cmdparameters = e.XmlElement.Attributes["cmdparameters"].InnerText; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The MIT License