Esempio n. 1
0
        private static XmlNodeList GetPatchTargetCodes(WixTest.BundleBuilder bundle)
        {
            string path = Path.Combine(bundle.Disassemble(), @"UX\manifest.xml");

            XmlDocument doc = new XmlDocument();

            doc.Load(path);

            XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);

            nsmgr.AddNamespace("w", "http://schemas.microsoft.com/wix/2008/Burn");

            return(doc.SelectNodes("/w:BurnManifest/w:PatchTargetCode", nsmgr));
        }
Esempio n. 2
0
        private WixTest.BundleBuilder GetBundleB(Dictionary <string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageAPath = Path.GetDirectoryName(this.GetPackageB().Output);
                bindPaths = new Dictionary <string, string>()
                {
                    { "packageB", packageAPath }
                };
            }

            return((null != this.bundleB) ? this.bundleB : this.bundleB = new BundleBuilder(this, "BundleB")
            {
                BindPaths = bindPaths, Extensions = Extensions
            }.Build());
        }
Esempio n. 3
0
        private WixTest.BundleBuilder GetBundleA(Dictionary <string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageAPath = this.GetPackageA().Output;
                bindPaths = new Dictionary <string, string>()
                {
                    { "packageA", packageAPath }
                };
            }

            return((null != this.bundleA) ? this.bundleA : this.bundleA = new BundleBuilder(this, "BundleA")
            {
                BindPaths = bindPaths, Extensions = Extensions
            }.Build());
        }
Esempio n. 4
0
        private WixTest.BundleBuilder GetBundleOnlyPatchA()
        {
            if (null == this.bundleOnlyPatchA)
            {
                string patchAPath = this.GetPatchA().Output;
                Dictionary <string, string> bindPaths = new Dictionary <string, string>()
                {
                    { "patchA", patchAPath }
                };

                this.bundleOnlyPatchA = new BundleBuilder(this, "BundleOnlyPatchA")
                {
                    BindPaths = bindPaths, Extensions = Extensions
                }.Build();
            }

            return(this.bundleOnlyPatchA);
        }
Esempio n. 5
0
        private WixTest.BundleBuilder GetBundleAv2(Dictionary <string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageAPath = this.GetPackageAv2().Output;
                bindPaths = new Dictionary <string, string>()
                {
                    { "packageA", packageAPath }
                };
            }

            return((null != this.bundleAv2) ? this.bundleAv2 : this.bundleAv2 = new BundleBuilder(this, "BundleA")
            {
                BindPaths = bindPaths, Extensions = Extensions, PreprocessorVariables = new Dictionary <string, string>()
                {
                    { "Version", V2 }
                }
            }.Build());
        }
Esempio n. 6
0
        private WixTest.BundleBuilder GetBundleAReverse()
        {
            if (null == this.bundleAReverse)
            {
                string packageAPath = this.GetPackageA().Output;
                string patchAPath   = this.GetPatchA().Output;
                Dictionary <string, string> bindPaths = new Dictionary <string, string>()
                {
                    { "packageA", packageAPath }, { "patchA", patchAPath }
                };

                this.bundleAReverse = new BundleBuilder(this, "BundleAReverse")
                {
                    BindPaths = bindPaths, Extensions = Extensions
                }.Build();
            }

            return(this.bundleAReverse);
        }
Esempio n. 7
0
        private WixTest.BundleBuilder GetBundleD(Dictionary <string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageDPath = this.GetPackageD().Output;
                bindPaths = new Dictionary <string, string>()
                {
                    { "packageD", packageDPath }
                };
            }

            if (null == this.bundleD)
            {
                this.bundleD = new BundleBuilder(this, "BundleD")
                {
                    BindPaths = bindPaths, Extensions = Extensions
                }.Build();
            }

            return(this.bundleD);
        }
Esempio n. 8
0
        private WixTest.BundleBuilder GetBundleOnlyPatchA()
        {
            if (null == this.bundleOnlyPatchA)
            {
                string patchAPath = this.GetPatchA().Output;
                Dictionary<string, string> bindPaths = new Dictionary<string, string>() { { "patchA", patchAPath } };

                this.bundleOnlyPatchA = new BundleBuilder(this, "BundleOnlyPatchA") { BindPaths = bindPaths, Extensions = Extensions }.Build();
            }

            return this.bundleOnlyPatchA;
        }
Esempio n. 9
0
        private WixTest.BundleBuilder GetBundleAReverse()
        {
            if (null == this.bundleAReverse)
            {
                string packageAPath = this.GetPackageA().Output;
                string patchAPath = this.GetPatchA().Output;
                Dictionary<string, string> bindPaths = new Dictionary<string, string>() { { "packageA", packageAPath }, { "patchA", patchAPath } };

                this.bundleAReverse = new BundleBuilder(this, "BundleAReverse") { BindPaths = bindPaths, Extensions = Extensions }.Build();
            }

            return this.bundleAReverse;
        }
Esempio n. 10
0
        private WixTest.BundleBuilder GetBundleAv2(Dictionary<string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageAPath = this.GetPackageAv2().Output;
                bindPaths = new Dictionary<string, string>() { { "packageA", packageAPath } };
            }

            return (null != this.bundleAv2) ? this.bundleAv2 : this.bundleAv2 = new BundleBuilder(this, "BundleA") { BindPaths = bindPaths, Extensions = Extensions, PreprocessorVariables = new Dictionary<string, string>() { { "Version", V2 } } }.Build();
        }
Esempio n. 11
0
        private WixTest.BundleBuilder GetBundleA(Dictionary<string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageAPath = this.GetPackageA().Output;
                bindPaths = new Dictionary<string, string>() { { "packageA", packageAPath } };
            }

            return (null != this.bundleA) ? this.bundleA : this.bundleA = new BundleBuilder(this, "BundleA") { BindPaths = bindPaths, Extensions = Extensions }.Build();
        }
Esempio n. 12
0
        private WixTest.BundleBuilder GetBundleC(Dictionary<string, string> bindPaths = null)
        {
            if (null == bindPaths)
            {
                string packageCPath = this.GetPackageC().Output;
                bindPaths = new Dictionary<string, string>() { { "packageC", packageCPath } };
            }

            if (null == this.bundleC)
            {
                this.bundleC = new BundleBuilder(this, "BundleC") { BindPaths = bindPaths, Extensions = Extensions }.Build();
            }

            return this.bundleC;
        }