Example #1
0
        private static void Main()
        {
            Console.Title = "Windows 10 Bloat Remover and Tweaker";
            EnsurePreliminaryChecksAreSuccessful();

            var configuration = LoadConfigurationFromFileOrDefault();

            RegisterExitEventHandlers();

            var installWimTweak = new InstallWimTweakImpl(configuration);
            var menu            = new ConsoleMenu(CreateMenuEntries(configuration, installWimTweak));

            menu.RunLoopUntilExitRequested();
        }
Example #2
0
        private static void Main()
        {
            Trace.Listeners.Add(new ConsoleTraceListener());
            Console.Title = "Windows 10 修改器";

            EnsureProgramIsRunningAsAdmin();
            ShowWarningIfRunningOnIncompatibleOS();
            RegisterExitEventHandlers();

            var configuration = LoadConfigurationFromFileOrDefault();
            var rebootFlag    = new RebootRecommendedFlag();
            var menu          = new ConsoleMenu(CreateMenuEntries(configuration, rebootFlag), rebootFlag);

            menu.RunLoopUntilExitRequested();
        }
Example #3
0
        private static void Main()
        {
            using var consoleListener = new ConsoleTraceListener();
            Trace.Listeners.Add(consoleListener);
            Console.Title = "Windows 10 Bloat Remover and Tweaker";

            EnsureProgramIsRunningAsAdmin();
            ShowWarningOnUnsupportedOS();
            RegisterExitEventHandlers();

            var configuration = LoadConfigurationFromFileOrDefault();
            var rebootFlag    = new RebootRecommendedFlag();
            var menu          = new ConsoleMenu(CreateMenuEntries(configuration, rebootFlag), rebootFlag);

            menu.RunLoopUntilExitRequested();
        }