Beispiel #1
0
        private XmlElement CreatePostUpdateCommand(PostUpdateCommand postUpdateCommand)
        {
            XmlElement xCom = null;

            if (postUpdateCommand != null)
            {
                xCom = manifestDocument.CreateElement(XML_ELEMENT_POST_UPDATE_COMMAND);
                xCom.SetAttribute(XML_ELEMENT_POST_UPDATE_COMMAND_ATTRIBUTE_EXECUTABLE, postUpdateCommand.executable);
                xCom.SetAttribute(XML_ELEMENT_POST_UPDATE_COMMAND_ATTRIBUTE_TARGETPATH, postUpdateCommand.targetpath);
                xCom.SetAttribute(XML_ELEMENT_POST_UPDATE_COMMAND_ATTRIBUTE_ARGUMENTS, postUpdateCommand.arguments);
                xCom.SetAttribute(XML_ELEMENT_POST_UPDATE_COMMAND_ATTRIBUTE_DELETE, postUpdateCommand.delete.ToString());
            }
            return(xCom);
        }
 public void SetPostUpdateCommand(string executable)
 {
     postUpdateCommand = new PostUpdateCommand(executable);
 }
 public void SetPostUpdateCommand(string executable, bool delete)
 {
     postUpdateCommand = new PostUpdateCommand(executable, delete);
 }
 public void SetPostUpdateCommand(string executable, string path)
 {
     postUpdateCommand = new PostUpdateCommand(executable, path);
 }
 public void SetPostUpdateCommand(string executable, string arguments, string path, bool delete)
 {
     postUpdateCommand = new PostUpdateCommand(executable, arguments, path, delete);
 }