public bool CreateProject(string path, ProjectType type = ProjectType.simple, ProjectLanguage lang = ProjectLanguage.en, bool overwrite = false)
        {
            string directoryPath = Path.GetDirectoryName(path);

            if (!Directory.Exists(directoryPath))
            {
                Directory.CreateDirectory(directoryPath);
            }

            bool result = AdvinstCLIWrapper.CreateNewProject(AdvancedInstallerPath, path, type, lang, overwrite);

            ProjectPath = result ? path : "";

            return(result);
        }
Exemplo n.º 2
0
        public void CreateNewProject()
        {
            bool result = AdvinstCLIWrapper.CreateNewProject(AdvancedInstallerPath, @"D:\test.aip", ProjectType.simple, ProjectLanguage.en, true);

            Assert.IsTrue(result);
        }