private SetupResult InstallInner()
        {
            var result = _tapInstallRunner.Install();

            if (result.Success)
            {
                return(SetupResult.Success);
            }

            if (result.RestartRequired)
            {
                return(SetupResult.RestartRequired);
            }

            return(SetupResult.Failure);
        }
Exemple #2
0
        private SetupResult InstalOrUpdateTapAdapter()
        {
            var result = _tapInstallRunner.IsInstalled() ? _tapInstallRunner.Update() : _tapInstallRunner.Install();

            if (result.Success)
            {
                return(SetupResult.Success);
            }

            if (result.RestartRequired)
            {
                return(SetupResult.RestartRequired);
            }

            return(SetupResult.Failure);
        }