static int Main(string[] args)
        {
            var keyManager = new HkcuKeysManager();

            try
            {
                Console.WriteLine("Start extracting args: " + string.Join(";", args));
                var parameters = Parameters.ExtractFromArgs(args);

                switch (parameters.Command)
                {
                case Command.Install:
                    keyManager.CreateOpenHkcuKey(parameters);
                    break;

                case Command.Uninstall:
                    keyManager.RemoveHkcuOpenKey(parameters);
                    break;

                default:
                    throw new NotSupportedException("unknown command");
                }
                Console.WriteLine("Command successfully executed!");
                return(0);
            }
            catch (Exception exception)
            {
                Console.WriteLine("Error: " + exception.Message);
                return(1);
            }
        }
        static int Main(string[] args)
        {
            var keyManager = new HkcuKeysManager();
            try
            {
                Console.WriteLine("Start extracting args: " + string.Join(";", args));
                var parameters = Parameters.ExtractFromArgs(args);

                switch (parameters.Command)
                {
                    case Command.Install:
                        keyManager.CreateOpenHkcuKey(parameters);
                        break;
                    case Command.Uninstall:
                        keyManager.RemoveHkcuOpenKey(parameters);
                        break;
                    default:
                        throw new NotSupportedException("unknown command");
                }
                Console.WriteLine("Command successfully executed!");
                return 0;
            }
            catch (Exception exception)
            {
                Console.WriteLine("Error: " + exception.Message);
                return 1;
            }
        }