Beispiel #1
0
        public static int Main(string[] args)
        {
            ProcessProgressStatus monitor = new ProcessProgressStatus(int.Parse(args[0]));

            try {
                string registryPath = Console.In.ReadLine();
                string startupDir   = Console.In.ReadLine();

                AddinDatabase.RunningSetupProcess = true;
                AddinRegistry reg = new AddinRegistry(registryPath, startupDir);

                switch (args [1])
                {
                case "scan":
                    string folder = args.Length > 2 ? args [2] : null;
                    if (folder.Length == 0)
                    {
                        folder = null;
                    }
                    StringCollection filesToIgnore = new StringCollection();
                    for (int n = 3; n < args.Length; n++)
                    {
                        filesToIgnore.Add(args[n]);
                    }
                    reg.ScanFolders(monitor, folder, filesToIgnore);
                    break;

                case "get-desc":
                    reg.ParseAddin(monitor, args[2], args[3]);
                    break;
                }
            } catch (Exception ex) {
                monitor.ReportError("Unexpected error in setup process", ex);
                return(1);
            }
            return(0);
        }
Beispiel #2
0
 public void GetAddinDescription(IProgressStatus monitor, AddinRegistry registry, string file, string outFile)
 {
     registry.ParseAddin(monitor, file, outFile);
 }
		public static int Main (string[] args)
		{
			ProcessProgressStatus monitor = new ProcessProgressStatus (args[0] == "v");
			
			try {
				string registryPath = Console.In.ReadLine ();
				string startupDir = Console.In.ReadLine ();
				
				AddinDatabase.RunningSetupProcess = true;
				AddinRegistry reg = new AddinRegistry (registryPath, startupDir);
			
				switch (args [1]) {
				case "scan":
					reg.ScanFolders (monitor, args.Length > 2 ? args [2] : null);
					break;
				case "get-desc":
					reg.ParseAddin (monitor, args[2], args[3]);
					break;
				}
			} catch (Exception ex) {
				monitor.ReportError ("Unexpected error in setup process", ex);
				return 1;
			}
			return 0;
		}
Beispiel #4
0
		public static int Main (string[] args)
		{
			ProcessProgressStatus monitor = new ProcessProgressStatus (int.Parse (args[0]));
			
			try {
				string registryPath = Console.In.ReadLine ();
				string startupDir = Console.In.ReadLine ();
				string addinsDir = Console.In.ReadLine ();
				string databaseDir = Console.In.ReadLine ();
				
				AddinDatabase.RunningSetupProcess = true;
				AddinRegistry reg = new AddinRegistry (registryPath, startupDir, addinsDir, databaseDir);
			
				switch (args [1]) {
				case "scan":
					string folder = args.Length > 2 ? args [2] : null;
					if (folder.Length == 0) folder = null;
					StringCollection filesToIgnore = new StringCollection ();
					for (int n=3; n<args.Length; n++)
						filesToIgnore.Add (args[n]);
					reg.ScanFolders (monitor, folder, filesToIgnore);
					break;
				case "get-desc":
					reg.ParseAddin (monitor, args[2], args[3]);
					break;
				}
			} catch (Exception ex) {
				monitor.ReportError ("Unexpected error in setup process", ex);
				return 1;
			}
			return 0;
		}
Beispiel #5
0
		public void GetAddinDescription (IProgressStatus monitor, string registryPath, string startupDir, string addinsDir, string databaseDir, string file, string outFile)
		{
			AddinDatabase.RunningSetupProcess = true;
			AddinRegistry reg = new AddinRegistry (registryPath, startupDir, addinsDir, databaseDir);
			reg.ParseAddin (monitor, file, outFile);
		}
Beispiel #6
0
		public void GetAddinDescription (IProgressStatus monitor, AddinRegistry registry, string file, string outFile)
		{
			registry.ParseAddin (monitor, file, outFile);
		}