From ecf0f8e0a3038e65d18cb3ace71b845af27407ae Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 16 Mar 2021 10:48:29 -0700 Subject: Implement validation and fix abandoned validation mutex Fixes wixtoolset/issues#5946 Fixes wixtoolset/issues#6366 --- .../IWindowsInstallerValidatorCallback.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs (limited to 'src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs') diff --git a/src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs b/src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs new file mode 100644 index 00000000..f4aff134 --- /dev/null +++ b/src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs @@ -0,0 +1,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 +{ + /// + /// Callbacks during validation. + /// + public interface IWindowsInstallerValidatorCallback + { + /// + /// Indicates if the validator callback encountered an error. + /// + bool EncounteredError { get; } + + /// + /// Validation blocked by another Windows Installer operation. + /// + void ValidationBlocked(); + + /// + /// Validation message from an ICE. + /// + /// The validation message. + /// True if validation should continue; otherwise cancel the validation. + bool ValidationMessage(ValidationMessage message); + } +} -- cgit v1.2.3-55-g6feb