Ejemplo n.º 1
0
        /// <summary>
        /// Displays help message header on Console for caller tool.
        /// </summary>
        public static void DisplayToolFooter()
        {
            var assembly = Assembly.GetCallingAssembly();

            Console.WriteLine();
            Console.WriteLine(WixDistribution.ReplacePlaceholders("For more information see: [SupportUrl]", assembly));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Displays help message header on Console for caller tool.
        /// </summary>
        public static void DisplayToolHeader()
        {
            var assembly = Assembly.GetCallingAssembly();

            Console.WriteLine(WixDistribution.ReplacePlaceholders("[AssemblyProduct] [AssemblyDescription] version [FileVersion]", assembly));
            Console.WriteLine(WixDistribution.ReplacePlaceholders("[AssemblyCopyright]", assembly));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Obtains a pointer to the string containing the product details that are displayed in the
        /// About dialog box on the Help menu. Not called for the splash screen.
        /// </summary>
        /// <param name="pbstrProductDetails">The product details to display on the About dialog.</param>
        /// <returns>If the method succeeds, it returns S_OK. If it fails, it returns an error code.</returns>
        int IVsInstalledProduct.ProductDetails(out string pbstrProductDetails)
        {
            if (String.IsNullOrEmpty(this.productDetails))
            {
                Assembly assembly = Assembly.GetExecutingAssembly();
                this.productDetails = WixDistribution.ReplacePlaceholders(WixStrings.ProductDetails, assembly);
            }

            pbstrProductDetails = this.productDetails;
            return(VSConstants.S_OK);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Obtains a pointer to the string containing the official name of the product that is
        /// displayed in the splash screen and About dialog box on the Help menu.
        /// </summary>
        /// <param name="pbstrName">The official name of the product.</param>
        /// <returns>If the method succeeds, it returns S_OK. If it fails, it returns an error code.</returns>
        int IVsInstalledProduct.OfficialName(out string pbstrName)
        {
            if (String.IsNullOrEmpty(this.officialName))
            {
                Assembly assembly = Assembly.GetExecutingAssembly();
                this.officialName = WixDistribution.ReplacePlaceholders(WixStrings.OfficialName, assembly);
            }

            pbstrName = this.officialName;
            return(VSConstants.S_OK);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Creates and returns the string for CreatingApplication field (MSI Summary Information Stream).
        /// </summary>
        /// <remarks>It reads the AssemblyProductAttribute and AssemblyVersionAttribute of executing assembly
        /// and builds the CreatingApplication string of the form "[ProductName] ([ProductVersion])".</remarks>
        /// <returns>Returns value for PID_APPNAME."</returns>
        public static string GetCreatingApplicationString()
        {
            var assembly = Assembly.GetExecutingAssembly();

            return(WixDistribution.ReplacePlaceholders("[AssemblyProduct] ([FileVersion])", assembly));
        }