示例#1
0
        private static bool CheckStarterFiles()
        {
            bool starterHasBeenInstalled = false;

            if (!File.Exists(FULL_STARTER_NAME))
            {
                starterHasBeenInstalled = InstallStarter();

                if (!starterHasBeenInstalled || !File.Exists(FULL_STARTER_NAME))
                {
                    ShowError(string.Format("Не удалось загрузить из базы файл: {0}", STARTER_NAME));
                    return(false);
                }
            }

            if (!starterHasBeenInstalled)
            {
                StarterUpdater.TryToUpdateStarterFiles(STARTER_PATH);
            }

            return(true);
        }
示例#2
0
        internal static void TryToUpdateStarterFiles(string starterPath)
        {
            StarterUpdater updater = new StarterUpdater(starterPath);

            updater.TryToUpdate();
        }