Esempio n. 1
0
        public string GetBinaryFileName(string id)
        {
            string           xpath         = GetXPath("//w:Binary[@Id='{0}']", id);
            WixBinaryElement binaryElement = (WixBinaryElement)SelectSingleElement(xpath);

            if (binaryElement != null)
            {
                return(binaryElement.GetFileName());
            }
            return(null);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the binary filename for the specified id.
        /// </summary>
        /// <returns><see langword="null"/> if the id cannot be found.</returns>
        public string GetBinaryFileName(string id)
        {
            string           xpath         = String.Concat("//w:Binary[@Id='", XmlEncode(id), "']");
            WixBinaryElement binaryElement = (WixBinaryElement)SelectSingleNode(xpath, namespaceManager);

            if (binaryElement != null)
            {
                return(binaryElement.FileName);
            }
            return(null);
        }