private void DeleteDefaultEnvironments()
        {
            IEnvironmentProfile defaultEnvironment = _environmentProfileRepository.FindByName(EnvironmentConstants.DefaultEnvironmentName);

            if (defaultEnvironment == null)
            {
                return;
            }

            string environmentPath = _environmentProfileRepository.GetPath(defaultEnvironment.Id);

            _environmentProfileRepository.Delete(defaultEnvironment.Id);

            if (Directory.Exists(environmentPath))
            {
                Directory.Delete(environmentPath, true);
            }

            _environmentProfileRepository.Save();
        }
        protected override void Initialize()
        {
            IEnvironmentProfile defaultEnvironment = _environmentProfileRepository.GetDefault();

            if (defaultEnvironment == null)
            {
                Finish();
                return;
            }

            string environmentPath = _environmentProfileRepository.GetPath(defaultEnvironment.Id);

            _environmentProfileRepository.Delete(defaultEnvironment.Id);

            if (Directory.Exists(environmentPath))
            {
                Directory.Delete(environmentPath, true);
            }

            Finish();
        }