diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-16 10:48:29 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-16 11:01:46 -0700 |
| commit | ecf0f8e0a3038e65d18cb3ace71b845af27407ae (patch) | |
| tree | 1c4d337e7d9790e52f47fe42b80e5a1577498e1d /src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs | |
| parent | 089a08fd6b9398b0e1040f96b8e24ba81acfe05b (diff) | |
| download | wix-ecf0f8e0a3038e65d18cb3ace71b845af27407ae.tar.gz wix-ecf0f8e0a3038e65d18cb3ace71b845af27407ae.tar.bz2 wix-ecf0f8e0a3038e65d18cb3ace71b845af27407ae.zip | |
Implement validation and fix abandoned validation mutex
Fixes wixtoolset/issues#5946
Fixes wixtoolset/issues#6366
Diffstat (limited to 'src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs')
| -rw-r--r-- | src/WixToolset.Core.Native/IWindowsInstallerValidatorCallback.cs | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
| 1 | // 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. | ||
| 2 | |||
| 3 | namespace WixToolset.Core.Native | ||
| 4 | { | ||
| 5 | /// <summary> | ||
| 6 | /// Callbacks during validation. | ||
| 7 | /// </summary> | ||
| 8 | public interface IWindowsInstallerValidatorCallback | ||
| 9 | { | ||
| 10 | /// <summary> | ||
| 11 | /// Indicates if the validator callback encountered an error. | ||
| 12 | /// </summary> | ||
| 13 | bool EncounteredError { get; } | ||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// Validation blocked by another Windows Installer operation. | ||
| 17 | /// </summary> | ||
| 18 | void ValidationBlocked(); | ||
| 19 | |||
| 20 | /// <summary> | ||
| 21 | /// Validation message from an ICE. | ||
| 22 | /// </summary> | ||
| 23 | /// <param name="message">The validation message.</param> | ||
| 24 | /// <returns>True if validation should continue; otherwise cancel the validation.</returns> | ||
| 25 | bool ValidationMessage(ValidationMessage message); | ||
| 26 | } | ||
| 27 | } | ||
