Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            if (ArgumentHelpers.IsHelpArgument(args))
            {
                Console.WriteLine("Writes all the currently installed versions of \"classic\" .NET platform in the system.");
                Console.WriteLine("Use --b, -b or /b to use in a batch, showing only the installed versions, without any extra informational lines.");
                return;
            }

            if (!ArgumentHelpers.IsBatchArgument(args))
            {
                Console.WriteLine("Currently installed \"classic\" .NET Versions in the system:");
            }

            Get1To45VersionFromRegistry();
            Get45PlusFromRegistry();
        }