Пример #1
0
 public static string ToCommandLineString(this AppInstallerArgument arg, bool escape = true)
 {
     if (escape)
     {
         return(new AppInstallerArgumentConverter().ToCommandLineString(arg));
     }
     else
     {
         return(new AppInstallerArgumentConverter().ToString(arg));
     }
 }
        public AppInstallerArgument Clone()
        {
            var arg = new AppInstallerArgument(this.RunMode)
            {
                InstallDir      = this.InstallDir,
                OriginalAppPath = this.OriginalAppPath,
                SourceDir       = this.SourceDir,
                TempFolder      = this.TempFolder
            };

            arg.ExcludeRelativePathRegex.AddRange(this.ExcludeRelativePathRegex);
            return(arg);
        }