Beispiel #1
0
        private void MergeCubes(InstallPackage db)
        {
            if (!this.NoDefault)
            {
                string darice = ComponentSearcher.Find(ComponentSearcher.KnownComponent.Darice);
                if (!string.IsNullOrEmpty(darice))
                {
                    this.MergeCube(db, darice);
                }
                else
                {
                    this.WriteWarning(Resources.Error_DefaultCubNotFound);
                }
            }

            if (null != this.AdditionalCube)
            {
                foreach (string cube in this.ResolveFiles(this.AdditionalCube))
                {
                    this.MergeCube(db, cube);
                }

                db.Commit();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Ges the path to Orca if installed; otherwise, displays a warning.
 /// </summary>
 protected override void BeginProcessing()
 {
     this.orcaPath = ComponentSearcher.Find(ComponentSearcher.KnownComponent.Orca);
     if (string.IsNullOrEmpty(this.orcaPath))
     {
         this.WriteWarning(Resources.Error_OrcaAbsent);
     }
 }