Example #1
0
 public void LoadWix(string fileName)
 {
     using (StreamReader reader = new StreamReader(fileName))
     {
         this.wix = (Wix)this.serializer.Deserialize(reader);
     }
 }
Example #2
0
 /// <summary>
 /// Creates a new Application object.
 /// </summary>
 public Application()
 {
     this.wixRoot = new Wix();
     this.product = new Product();
     this.wixRoot.AddChild(this.product);
     this.package = new Package();
     this.package.Id = "????????-????-????-????-????????????";
     this.package.Compressed = Microsoft.Tools.WindowsInstallerXml.Serialize.YesNoType.yes;
     this.package.InstallerVersion = 200;
     this.product.AddChild(this.package);
 }
        public WixRenderer()
        {
            this.graph = new AdjacencyGraph(
                new CustomVertexProvider(),
                new CustomEdgeProvider(),
                true
                );
            this.graphviz = new GraphvizAlgorithm(this.graph);
            this.wix = null;

            this.graphviz.ImageType = NGraphviz.Helpers.GraphvizImageType.Svg;
            this.graphviz.CommonEdgeFormat.Font = new Font("Tahoma", 8.25f);
            this.graphviz.CommonVertexFormat.Font = new Font("Tahoma", 8.25f);
            this.graphviz.CommonVertexFormat.Style = NGraphviz.Helpers.GraphvizVertexStyle.Filled;
            this.graphviz.CommonVertexFormat.FillColor = Color.LightYellow;
            this.graphviz.CommonVertexFormat.Shape = NGraphviz.Helpers.GraphvizVertexShape.Box;
            this.graphviz.FormatVertex+=new FormatVertexEventHandler(graphviz_FormatVertex);

            this.visitor = new GraphPopulatorWixVisitor(this);
        }