示例#1
0
        private string GetRunArguments(Xml.Version version, string mode)
        {
            if (string.IsNullOrEmpty(version.DB.User))
            {
                version.DB.User = "******";
            }
            if (string.IsNullOrEmpty(version.DB.Password))
            {
                version.DB.Password = "******";
            }

            List <string> aruments = new List <string>();

            aruments.Add(version.Launcher);
            aruments.Add("0");
            aruments.Add(AddDoubleQuotes(mode));
            aruments.Add(AddDoubleQuotes(""));
            aruments.Add(AddDoubleQuotes(version.DB.Name));
            aruments.Add(AddDoubleQuotes(version.DB.Host));
            aruments.Add(AddDoubleQuotes(version.DB.Name));
            aruments.Add(AddDoubleQuotes(version.DB.User));
            aruments.Add(AddDoubleQuotes(version.DB.Password));
            aruments.Add(AddDoubleQuotes(version.Vendo.User));
            aruments.Add(AddDoubleQuotes(version.Vendo.Password));
            aruments.Add("-pass_not_enc");
            aruments.Add("-ignorepatchcheck");
            aruments.Add("-logs");
            aruments.Add("-safemode");

            return(string.Join(" ", aruments.ToArray()));
        }
示例#2
0
        private string GetRepositoryExe(Xml.Version version, string mode)
        {
            if (string.IsNullOrEmpty(version.Repository))
            {
                return(null);
            }

            return(version.Repository + @"\" + GetApplicationName(mode));
        }