Example #1
0
 /// <summary>
 /// Creates a new instance of the <see cref="DetectRelatedMsiPackageEventArgs"/> class.
 /// </summary>
 /// <param name="packageId">The identity of the package detecting.</param>
 /// <param name="productCode">The identity of the related package detected.</param>
 /// <param name="perMachine">Whether the detected package is per machine.</param>
 /// <param name="version">The version of the related package detected.</param>
 /// <param name="operation">The operation that will be taken on the detected package.</param>
 public DetectRelatedMsiPackageEventArgs(string packageId, string productCode, bool perMachine, long version, RelatedOperation operation)
 {
     this.packageId = packageId;
     this.productCode = productCode;
     this.perMachine = perMachine;
     this.version = new Version((int)(version >> 48 & 0xFFFF), (int)(version >> 32 & 0xFFFF), (int)(version >> 16 & 0xFFFF), (int)(version & 0xFFFF));
     this.operation = operation;
 }
Example #2
0
        Result IBootstrapperApplication.OnDetectRelatedMsiPackage(string wzPackageId, string wzProductCode, bool fPerMachine, long version, RelatedOperation operation)
        {
            DetectRelatedMsiPackageEventArgs args = new DetectRelatedMsiPackageEventArgs(wzPackageId, wzProductCode, fPerMachine, version, operation);
            this.OnDetectRelatedMsiPackage(args);

            return args.Result;
        }
Example #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="DetectRelatedBundleEventArgs"/> class.
 /// </summary>
 /// <param name="productCode">The identity of the related package bundle.</param>
 /// <param name="relationType">Relationship type for this related bundle.</param>
 /// <param name="bundleTag">The tag of the related package bundle.</param>
 /// <param name="perMachine">Whether the detected bundle is per machine.</param>
 /// <param name="version">The version of the related bundle detected.</param>
 /// <param name="operation">The operation that will be taken on the detected bundle.</param>
 public DetectRelatedBundleEventArgs(string productCode, RelationType relationType, string bundleTag, bool perMachine, long version, RelatedOperation operation)
 {
     this.productCode = productCode;
     this.relationType = relationType;
     this.bundleTag = bundleTag;
     this.perMachine = perMachine;
     this.version = new Version((int)(version >> 48 & 0xFFFF), (int)(version >> 32 & 0xFFFF), (int)(version >> 16 & 0xFFFF), (int)(version & 0xFFFF));
     this.operation = operation;
 }
Example #4
0
        Result IBootstrapperApplication.OnDetectRelatedBundle(string wzProductCode, RelationType relationType, string wzBundleTag, bool fPerMachine, long version, RelatedOperation operation)
        {
            DetectRelatedBundleEventArgs args = new DetectRelatedBundleEventArgs(wzProductCode, relationType, wzBundleTag, fPerMachine, version, operation);
            this.OnDetectRelatedBundle(args);

            return args.Result;
        }