Пример #1
0
        private bool ValidatePaths()
        {
            if (Directory.Exists(SolutionDirPath) == false)
            {
                Working.ShowMessage("Source files directory doesn't exists!\nCheck the path again.");
                return(false);
            }

            if (Directory.Exists(InstallDirPath) == false)
            {
                Working.ShowMessage("InstallDir directory doesn't exists!\nCheck the path again.");
                return(false);
            }

            if (Working.IsSubdirectory(SolutionDirPath, InstallDirPath) == false)
            {
                Working.ShowMessage("INSTALLDIR is not inside source files dir!\nCheck your paths again.");
                return(false);
            }

            return(true);
        }