aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs
blob: f4aff134886914ccd98e88372083cf56a7f5f833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.

namespace WixToolset.Core.Native
{
    /// <summary>
    /// Callbacks during validation.
    /// </summary>
    public interface IWindowsInstallerValidatorCallback
    {
        /// <summary>
        /// Indicates if the validator callback encountered an error.
        /// </summary>
        bool EncounteredError { get; }

        /// <summary>
        /// Validation blocked by another Windows Installer operation.
        /// </summary>
        void ValidationBlocked();

        /// <summary>
        /// Validation message from an ICE.
        /// </summary>
        /// <param name="message">The validation message.</param>
        /// <returns>True if validation should continue; otherwise cancel the validation.</returns>
        bool ValidationMessage(ValidationMessage message);
    }
}