Example #1
0
        //==========================================================================================
        // Methods
        //==========================================================================================

        /// <summary>
        /// Creates the most specific file node type from the file's extension.
        /// </summary>
        /// <param name="absolutePath">The path to the file.</param>
        /// <returns>The most specific <see cref="FileNode"/> object for the OS file.</returns>
        public override FileNode CreateFileNodeFromExtension(string absolutePath)
        {
            Tracer.VerifyStringArgument(absolutePath, "absolutePath");
            FileNode node;

            string extension = Path.GetExtension(absolutePath).ToLower(CultureInfo.InvariantCulture);

            switch (extension)
            {
            case ".wixlib":
                node = new WixlibReferenceFileNode(this, absolutePath);
                break;

            case ".wxs":
            case ".wxi":
            case ".wxl":
            case ".wixout":
                node = new WixFileNode(this, absolutePath);
                break;

            default:
                node = base.CreateFileNodeFromExtension(absolutePath);
                break;
            }

            return(node);
        }
Example #2
0
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="WixFileNodeProperties"/> class.
        /// </summary>
        /// <param name="node">The node that contains the properties to expose via the Property Browser.</param>
        public WixFileNodeProperties(WixFileNode node)
            : base(node)
        {
        }
 // =========================================================================================
 // Constructors
 // =========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixLinkedFileNodeProperties"/> class.
 /// </summary>
 /// <param name="node">The node that contains the properties to expose via the Property Browser.</param>
 public WixLinkedFileNodeProperties(WixFileNode node)
     : base(node)
 {
 }
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="WixFileNodeNonMemberProperties"/> class.
        /// </summary>
        /// <param name="node">The node that contains the properties to expose via the Property Browser.</param>
        public WixFileNodeNonMemberProperties(WixFileNode node)
            : base(node)
        {
        }
Example #5
0
        //==========================================================================================
        // Methods
        //==========================================================================================
        /// <summary>
        /// Creates the most specific file node type from the file's extension.
        /// </summary>
        /// <param name="absolutePath">The path to the file.</param>
        /// <returns>The most specific <see cref="FileNode"/> object for the OS file.</returns>
        public override FileNode CreateFileNodeFromExtension(string absolutePath)
        {
            Tracer.VerifyStringArgument(absolutePath, "absolutePath");
            FileNode node;

            string extension = Path.GetExtension(absolutePath).ToLower(CultureInfo.InvariantCulture);
            switch (extension)
            {
                case ".wixlib":
                    node = new WixlibReferenceFileNode(this, absolutePath);
                    break;

                case ".wxs":
                case ".wxi":
                case ".wxl":
                case ".wixout":
                    node = new WixFileNode(this, absolutePath);
                    break;

                default:
                    node = base.CreateFileNodeFromExtension(absolutePath);
                    break;
            }

            return node;
        }
Example #6
0
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="WixFileNodeNonMemberProperties"/> class.
        /// </summary>
        /// <param name="node">The node that contains the properties to expose via the Property Browser.</param>
        public WixFileNodeNonMemberProperties(WixFileNode node)
            : base(node)
        {
        }