예제 #1
0
        /// <summary>
        /// Adds a new root directory.
        /// </summary>
        public WixDirectoryElement AddRootDirectory()
        {
            // Add product element if it does not exist.
            XmlElement productElement = Product;

            if (productElement == null)
            {
                productElement = CreateWixElement("Product");
                DocumentElement.AppendChild(productElement);
            }

            // Add root directory.
            WixDirectoryElement rootDirectory = WixDirectoryElement.CreateRootDirectory(this);

            return((WixDirectoryElement)productElement.AppendChild(rootDirectory));
        }
예제 #2
0
        WixDirectoryElement AddRootDirectoryToProduct(XmlElement parentProductElement)
        {
            WixDirectoryElement rootDirectory = WixDirectoryElement.CreateRootDirectory(this);

            return((WixDirectoryElement)parentProductElement.AppendChild(rootDirectory));
        }