/// <summary>
		/// Adds a new component element to this directory element.
		/// </summary>
		public WixComponentElement AddComponent(string id)
		{
			WixComponentElement componentElement = new WixComponentElement((WixDocument)OwnerDocument);
			componentElement.GenerateNewGuid();
			componentElement.Id = id;
			return (WixComponentElement)AppendChild(componentElement);			
		}
		/// <summary>
		/// Adds a new component element to this directory element.
		/// </summary>
		public WixComponentElement AddComponent(string fileName)
		{
			WixComponentElement componentElement = new WixComponentElement((WixDocument)OwnerDocument);
			componentElement.GenerateUniqueIdFromFileName(fileName);
			componentElement.GenerateNewGuid();
			AppendChild(componentElement);
			return componentElement;
		}
Пример #3
0
        /// <summary>
        /// Adds a new component element to this directory element.
        /// </summary>
        public WixComponentElement AddComponent(string id)
        {
            WixComponentElement componentElement = new WixComponentElement((WixDocument)OwnerDocument);

            componentElement.GenerateNewGuid();
            componentElement.Id = id;
            return((WixComponentElement)AppendChild(componentElement));
        }
        /// <summary>
        /// Adds a new component element to this directory element.
        /// </summary>
        public WixComponentElement AddComponent(string fileName)
        {
            WixComponentElement componentElement = new WixComponentElement((WixDocument)OwnerDocument);

            componentElement.GenerateUniqueIdFromFileName(fileName);
            componentElement.GenerateNewGuid();
            AppendChild(componentElement);
            return(componentElement);
        }