Ejemplo n.º 1
0
        public void PackagePayloads()
        {
            string sourceFile      = Path.Combine(PackageTests.TestDataDirectory, @"PackagePayloads\Product.wxs");
            string outputDirectory = this.TestDirectory;
            string PayloadFile1    = Path.Combine(BundleTests.BundleSharedFilesDirectory, @"UXPayload\PayloadFile1.txt");
            string PayloadFile2    = Path.Combine(BundleTests.BundleSharedFilesDirectory, @"UXPayload\PayloadFile2.txt");
            string PayloadFile3    = Path.Combine(BundleTests.BundleSharedFilesDirectory, @"UXPayload\PayloadFile3.txt");
            string PayloadFile4    = Path.Combine(BundleTests.BundleSharedFilesDirectory, @"UXPayload\PayloadFile4.txt");
            string PayloadFile5    = Path.Combine(BundleTests.BundleSharedFilesDirectory, @"UXPayload\PayloadFile5.txt");

            // build the bootstrapper
            string bootstrapper = Builder.BuildBundlePackage(outputDirectory, sourceFile);

            // verify the burnManifest has the correct information
            PackageTests.VerifyMsiPackageInformation(outputDirectory, "MsiPackage1.msi", "MsiPackage1", null, BundleTests.MsiPackageProductCode, false, false, string.Format("{0}v0.1.0.0", BundleTests.MsiPackageProductCode), null, BundleTests.MsiPackageFile);
            PackageTests.VerifyMsuPackageInformation(outputDirectory, "MsuPackage2.msu", "MsuPackage2", null, false, false, null, BundleTests.MsuPackageFile);
            PackageTests.VerifyMspPackageInformation(outputDirectory, "MspPackage3.msp", "MspPackage3", null, BundleTests.MspPackagePatchCode, false, false, BundleTests.MspPackagePatchCode, null, BundleTests.MspPackageFile);
            PackageTests.VerifyExePackageInformation(outputDirectory, "ExePackage4.exe", "ExePackage4", null, false, false, string.Empty, string.Empty, string.Empty, @"file://wixbuild/releases/wix/", BundleTests.ExePackageFile);

            PackageTests.VerifyPackagePayloadInformation(outputDirectory, PackageTests.PackageType.MSI, "MsiPackage1.msi", "MsiPackage1", "PayloadFile1.txt", null, PayloadFile1);
            PackageTests.VerifyPackagePayloadInformation(outputDirectory, PackageTests.PackageType.MSU, "MsuPackage2.msu", "MsuPackage2", "PayloadFile2.txt", null, PayloadFile2);
            PackageTests.VerifyPackagePayloadInformation(outputDirectory, PackageTests.PackageType.MSP, "MspPackage3.msp", "MspPackage3", "PayloadFile3.txt", null, PayloadFile3);
            PackageTests.VerifyPackagePayloadInformation(outputDirectory, PackageTests.PackageType.MSP, "MspPackage3.msp", "MspPackage3", "PayloadFile4.txt", "http://go.microsoft.com/fwlink/?linkid=164202", PayloadFile4);
            PackageTests.VerifyPackagePayloadInformation(outputDirectory, PackageTests.PackageType.EXE, "ExePackage4.exe", "ExePackage4", "PayloadFile5.txt", null, PayloadFile5);
        }
Ejemplo n.º 2
0
        public void ChainPackageGroupRefChild()
        {
            string sourceFile      = Path.Combine(ChainTests.TestDataDirectory, @"ChainPackageGroupRefChild\Product.wxs");
            string outputDirectory = this.TestDirectory;

            // build the bootstrapper
            string bootstrapper = Builder.BuildBundlePackage(outputDirectory, sourceFile);

            // verify the ParameterInfo and burnManifest has the correct information
            PackageTests.VerifyMsiPackageInformation(outputDirectory, "MsiPackage.msi", "MsiPackage", null, BundleTests.MsiPackageProductCode, false, false, string.Format("{0}v0.1.0.0", BundleTests.MsiPackageProductCode), null, BundleTests.MsiPackageFile);
            PackageTests.VerifyMspPackageInformation(outputDirectory, "MspPackage.msp", "MspPackage", null, BundleTests.MspPackagePatchCode, false, false, BundleTests.MspPackagePatchCode, null, BundleTests.MspPackageFile);
            PackageTests.VerifyMsuPackageInformation(outputDirectory, "MsuPackage.msu", "MsuPackage", null, false, false, null, BundleTests.MsuPackageFile);
            PackageTests.VerifyExePackageInformation(outputDirectory, "ExePackage.exe", "ExePackage", null, false, false, string.Empty, string.Empty, string.Empty, null, BundleTests.ExePackageFile);
        }
Ejemplo n.º 3
0
        // bug# https://sourceforge.net/tracker/?func=detail&aid=2980325&group_id=105970&atid=642714
        public void ValidPackage()
        {
            string sourceFile      = Path.Combine(PackageTests.TestDataDirectory, @"ValidPackage\Product.wxs");
            string outputDirectory = this.TestDirectory;

            // build the bootstrapper
            string bootstrapper = Builder.BuildBundlePackage(outputDirectory, sourceFile);

            // verify the burnManifest has the correct information
            PackageTests.VerifyMspPackageInformation(outputDirectory, "MspPackage1.msp", "MspPackage1", null, BundleTests.MspPackagePatchCode, true, false, "MspPackage1CacheId", null, BundleTests.MspPackageFile);
            PackageTests.VerifyMsuPackageInformation(outputDirectory, "MsuPackage2.msu", "MsuPackage2", null, true, true, @"ftp://192.168.0.1/testPayload.exe", BundleTests.MsuPackageFile);
            PackageTests.VerifyMsiPackageInformation(outputDirectory, "MsiPackage3.msi", "MsiPackage3", null, BundleTests.MsiPackageProductCode, false, true, string.Format("{0}v0.1.0.0", BundleTests.MsiPackageProductCode), @"http://go.microsoft.com/fwlink/?linkid=164202", BundleTests.MsiPackageFile);
            PackageTests.VerifyExePackageInformation(outputDirectory, "ExePackage5.exe", "ExePackage5", "x!=y", true, true, @"\q", @"\q \r \t", @"\anotherargument -t", @"\\wixbuild\releases\wix\", BundleTests.MsiPackageFile); // using the msi package for an exe

            PackageTests.VerifyMsiPackageOrder(outputDirectory, "ExePackage5.exe", "MspPackage1.msp", "MsuPackage2.msi", "MsiPackage3.msi");
        }