winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Constants.cs (25652B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="Constants.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace AppInstallerCLIE2ETests
      8 {
      9     /// <summary>
     10     /// Constants.
     11     /// </summary>
     12     public class Constants
     13     {
     14 #pragma warning disable SA1600 // ElementsMustBeDocumented
     15 #pragma warning disable SA1310 // Field names should not contain underscore
     16 
     17         // Runtime test parameters
     18         public const string PackagedContextParameter = "PackagedContext";
     19         public const string AICLIPathParameter = "AICLIPath";
     20         public const string AICLIPackagePathParameter = "AICLIPackagePath";
     21         public const string VerboseLoggingParameter = "VerboseLogging";
     22         public const string LooseFileRegistrationParameter = "LooseFileRegistration";
     23         public const string InvokeCommandInDesktopPackageParameter = "InvokeCommandInDesktopPackage";
     24         public const string StaticFileRootPathParameter = "StaticFileRootPath";
     25         public const string LocalServerCertPathParameter = "LocalServerCertPath";
     26         public const string ExeInstallerPathParameter = "ExeTestInstallerPath";
     27         public const string MsiInstallerPathParameter = "MsiTestInstallerPath";
     28         public const string MsiInstallerV2PathParameter = "MsiTestInstallerV2Path";
     29         public const string MsixInstallerPathParameter = "MsixTestInstallerPath";
     30         public const string PackageCertificatePathParameter = "PackageCertificatePath";
     31         public const string PowerShellModulePathParameter = "PowerShellModulePath";
     32         public const string SkipTestSourceParameter = "SkipTestSource";
     33         public const string ForcedExperimentalFeaturesParameter = "ForcedExperimentalFeatures";
     34 
     35         // Test Sources
     36         public const string DefaultWingetSourceName = @"winget";
     37         public const string DefaultWingetSourceUrl = @"https://winget.azureedge.net/cache";
     38         public const string DefaultMSStoreSourceName = @"msstore";
     39         public const string DefaultMSStoreSourceUrl = @"https://storeedgefd.dsx.mp.microsoft.com/v9.0";
     40         public const string DefaultMSStoreSourceType = "Microsoft.Rest";
     41         public const string DefaultMSStoreSourceIdentifier = "StoreEdgeFD";
     42         public const string TestSourceName = @"TestSource";
     43         public const string TestAlternateSourceName = @"TestSource2";
     44         public const string TestSourceUrl = @"https://localhost:5001/TestKit";
     45         public const string TestSourceType = "Microsoft.PreIndexed.Package";
     46         public const string TestSourceIdentifier = @"WingetE2E.Tests_8wekyb3d8bbwe";
     47 
     48         public const string AICLIPackageFamilyName = "WinGetDevCLI_8wekyb3d8bbwe";
     49         public const string AICLIPackageName = "WinGetDevCLI";
     50         public const string AICLIPackagePublisherHash = "8wekyb3d8bbwe";
     51         public const string AICLIAppId = "WinGetDev";
     52 
     53         public const string TestPackage = "TëstPackage.msix";
     54         public const string ExeInstaller = "AppInstallerTestExeInstaller";
     55         public const string MsiInstaller = "AppInstallerTestMsiInstaller";
     56         public const string MsixInstaller = "AppInstallerTestMsixInstaller";
     57         public const string ZipInstaller = "AppInstallerTestZipInstaller";
     58         public const string ExeInstallerFileName = "AppInstallerTestExeInstaller.exe";
     59         public const string MsiInstallerFileName = "AppInstallerTestMsiInstaller.msi";
     60         public const string MsiInstallerV2FileName = "AppInstallerTestMsiInstallerV2.msi";
     61         public const string MsixInstallerFileName = "AppInstallerTestMsixInstaller.msix";
     62         public const string ZipInstallerFileName = "AppInstallerTestZipInstaller.zip";
     63         public const string ModifyRepairInstaller = "AppInstallerTest.TestModifyRepair";
     64         public const string IndexPackage = "source.msix";
     65         public const string MakeAppx = "makeappx.exe";
     66         public const string SignTool = "signtool.exe";
     67         public const string IndexCreationTool = "IndexCreationTool";
     68         public const string WinGetUtil = "WinGetUtil";
     69         public const string E2ETestLogsPathPackaged = @"Packages\WinGetDevCLI_8wekyb3d8bbwe\LocalState\DiagOutputDir";
     70         public const string E2ETestLogsPathUnpackaged = @"WinGet\defaultState";
     71         public const string CheckpointDirectoryPackaged = @"Packages\WinGetDevCLI_8wekyb3d8bbwe\LocalState\Checkpoints";
     72         public const string CheckpointDirectoryUnpackaged = @"Microsoft\WinGet\State\defaultState\Checkpoints";
     73 
     74         // Installer filename
     75         public const string TestCommandExe = "testCommand.exe";
     76         public const string AppInstallerTestExeInstallerExe = "AppInstallerTestExeInstaller.exe";
     77         public const string AppInstallerTestMsiInstallerMsi = "AppInstallerTestMsiInstaller.msi";
     78         public const string AppInstallerTestZipInstallerZip = "AppInstallerTestZipInstaller.zip";
     79 
     80         // Test installers' package IDs
     81         public const string ExeInstallerPackageId = "AppInstallerTest.TestExeInstaller";
     82         public const string MsiInstallerPackageId = "AppInstallerTest.TestMsiInstaller";
     83         public const string MsixInstallerPackageId = "AppInstallerTest.TestMsixInstaller";
     84         public const string PortableExePackageId = "AppInstallerTest.TestPortableExe";
     85         public const string PortableExeWithCommandPackageId = "AppInstallerTest.TestPortableExeWithCommand";
     86 
     87         public const string ExeInstalledDefaultProductCode = "{A499DD5E-8DC5-4AD2-911A-BCD0263295E9}";
     88         public const string MsiInstallerProductCode = "{A5D36CF1-1993-4F63-BFB4-3ACD910D36A1}";
     89         public const string MsixInstallerName = "6c6338fe-41b7-46ca-8ba6-b5ad5312bb0e";
     90         public const string MsixInstallerPackageFamilyName = "6c6338fe-41b7-46ca-8ba6-b5ad5312bb0e_8wekyb3d8bbwe";
     91 
     92         public const string TestExeInstalledFileName = "TestExeInstalled.txt";
     93         public const string TestExeUninstallerFileName = "UninstallTestExe.bat";
     94         public const string TestExeUninstalledFileName = "TestExeUninstalled.txt";
     95         public const string TestExeRepairCompletedFileName = "TestExeRepairCompleted.txt";
     96 
     97         // PowerShell Cmdlets
     98         public const string FindCmdlet = "Find-WinGetPackage";
     99         public const string GetCmdlet = "Get-WinGetPackage";
    100         public const string GetSourceCmdlet = "Get-WinGetSource";
    101         public const string InstallCmdlet = "Install-WinGetPackage";
    102         public const string UninstallCmdlet = "Uninstall-WinGetPackage";
    103         public const string UpdateCmdlet = "Update-WinGetPackage";
    104 
    105         public const string WindowsPackageManagerServer = "WindowsPackageManagerServer";
    106 
    107         // Locations
    108         public const string LocalAppData = "LocalAppData";
    109         public const string Dependencies = "Dependencies";
    110 
    111         // Package dir
    112         public const string PortableExePackageDirName = $"{PortableExePackageId}_{TestSourceIdentifier}";
    113         public const string PortableExeWithCommandPackageDirName = $"{PortableExeWithCommandPackageId}_{TestSourceIdentifier}";
    114 
    115         // Registry keys
    116         public const string WinGetPackageIdentifier = "WinGetPackageIdentifier";
    117         public const string WinGetSourceIdentifier = "WinGetSourceIdentifier";
    118         public const string UninstallSubKey = @"Software\Microsoft\Windows\CurrentVersion\Uninstall";
    119         public const string PathSubKey_User = @"Environment";
    120         public const string PathSubKey_Machine = @"SYSTEM\CurrentControlSet\Control\Session Manager\Environment";
    121 
    122         // User settings
    123         public const string ArchiveExtractionMethod = "archiveExtractionMethod";
    124         public const string PortablePackageUserRoot = "portablePackageUserRoot";
    125         public const string PortablePackageMachineRoot = "portablePackageMachineRoot";
    126         public const string InstallBehaviorScope = "scope";
    127         public const string InstallerTypes = "installerTypes";
    128         public const string DefaultModuleRoot = "defaultModuleRoot";
    129 
    130         // Configuration
    131         public const string PSGalleryName = "PSGallery";
    132         public const string TestRepoName = "AppInstallerCLIE2ETestsRepo";
    133         public const string GalleryTestModuleName = "XmlContentDsc";
    134         public const string SimpleTestModuleName = "xE2ETestResource";
    135         public const string LocalModuleDescriptor = "[Local]";
    136         public const string TestRegistryPath = "Software\\Microsoft\\WinGet\\Tests";
    137 
    138         // Group Policy Error Message
    139         public const string BlockByWinGetPolicyErrorMessage = "This operation is disabled by Group Policy : Enable Windows Package Manager";
    140 
    141         /// <summary>
    142         /// Error codes.
    143         /// </summary>
    144         public class ErrorCode
    145         {
    146             public const int S_OK = 0;
    147             public const int S_FALSE = 1;
    148             public const int ERROR_FILE_NOT_FOUND = unchecked((int)0x80070002);
    149             public const int ERROR_PATH_NOT_FOUND = unchecked((int)0x80070003);
    150             public const int E_INVALIDARG = unchecked((int)0x80070057);
    151             public const int ERROR_NO_RANGES_PROCESSED = unchecked((int)0x80070138);
    152             public const int OPC_E_ZIP_MISSING_END_OF_CENTRAL_DIRECTORY = unchecked((int)0x8051100F);
    153             public const int ERROR_OLD_WIN_VERSION = unchecked((int)0x8007047E);
    154             public const int HTTP_E_STATUS_NOT_FOUND = unchecked((int)0x80190194);
    155             public const int E_ABORT = unchecked((int)0x80004004);
    156 
    157             // AICLI custom HRESULTs
    158             public const int ERROR_INTERNAL_ERROR = unchecked((int)0x8A150001);
    159             public const int ERROR_INVALID_CL_ARGUMENTS = unchecked((int)0x8A150002);
    160             public const int ERROR_COMMAND_FAILED = unchecked((int)0x8A150003);
    161             public const int ERROR_MANIFEST_FAILED = unchecked((int)0x8A150004);
    162             public const int ERROR_CTRL_SIGNAL_RECEIVED = unchecked((int)0x8A150005);
    163             public const int ERROR_SHELLEXEC_INSTALL_FAILED = unchecked((int)0x8A150006);
    164             public const int ERROR_UNSUPPORTED_MANIFESTVERSION = unchecked((int)0x8A150007);
    165             public const int ERROR_DOWNLOAD_FAILED = unchecked((int)0x8A150008);
    166             public const int ERROR_CANNOT_WRITE_TO_UPLEVEL_INDEX = unchecked((int)0x8A150009);
    167             public const int ERROR_INDEX_INTEGRITY_COMPROMISED = unchecked((int)0x8A15000A);
    168             public const int ERROR_SOURCES_INVALID = unchecked((int)0x8A15000B);
    169             public const int ERROR_SOURCE_NAME_ALREADY_EXISTS = unchecked((int)0x8A15000C);
    170             public const int ERROR_INVALID_SOURCE_TYPE = unchecked((int)0x8A15000D);
    171             public const int ERROR_PACKAGE_IS_BUNDLE = unchecked((int)0x8A15000E);
    172             public const int ERROR_SOURCE_DATA_MISSING = unchecked((int)0x8A15000F);
    173             public const int ERROR_NO_APPLICABLE_INSTALLER = unchecked((int)0x8A150010);
    174             public const int ERROR_INSTALLER_HASH_MISMATCH = unchecked((int)0x8A150011);
    175             public const int ERROR_SOURCE_NAME_DOES_NOT_EXIST = unchecked((int)0x8A150012);
    176             public const int ERROR_SOURCE_ARG_ALREADY_EXISTS = unchecked((int)0x8A150013);
    177             public const int ERROR_NO_APPLICATIONS_FOUND = unchecked((int)0x8A150014);
    178             public const int ERROR_NO_SOURCES_DEFINED = unchecked((int)0x8A150015);
    179             public const int ERROR_MULTIPLE_APPLICATIONS_FOUND = unchecked((int)0x8A150016);
    180             public const int ERROR_NO_MANIFEST_FOUND = unchecked((int)0x8A150017);
    181             public const int ERROR_EXTENSION_PUBLIC_FAILED = unchecked((int)0x8A150018);
    182             public const int ERROR_COMMAND_REQUIRES_ADMIN = unchecked((int)0x8A150019);
    183             public const int ERROR_SOURCE_NOT_SECURE = unchecked((int)0x8A15001A);
    184             public const int ERROR_MSSTORE_BLOCKED_BY_POLICY = unchecked((int)0x8A15001B);
    185             public const int ERROR_MSSTORE_APP_BLOCKED_BY_POLICY = unchecked((int)0x8A15001C);
    186             public const int ERROR_EXPERIMENTAL_FEATURE_DISABLED = unchecked((int)0x8A15001D);
    187             public const int ERROR_MSSTORE_INSTALL_FAILED = unchecked((int)0x8A15001E);
    188             public const int ERROR_COMPLETE_INPUT_BAD = unchecked((int)0x8A15001F);
    189             public const int ERROR_YAML_INIT_FAILED = unchecked((int)0x8A150020);
    190             public const int ERROR_INVALID_MAPPING_KEY = unchecked((int)0x8A150021);
    191             public const int ERROR_DUPLICATE_MAPPING_KEY = unchecked((int)0x8A150022);
    192             public const int ERROR_YAML_INVALID_OPERATION = unchecked((int)0x8A150023);
    193             public const int ERROR_YAML_DOC_BUILD_FAILED = unchecked((int)0x8A150024);
    194             public const int ERROR_YAML_INVALID_EMITTER_STATE = unchecked((int)0x8A150025);
    195             public const int ERROR_YAML_INVALID_DATA = unchecked((int)0x8A150026);
    196             public const int ERROR_LIBYAML_ERROR = unchecked((int)0x8A150027);
    197             public const int ERROR_MANIFEST_VALIDATION_WARNING = unchecked((int)0x8A150028);
    198             public const int ERROR_MANIFEST_VALIDATION_FAILURE = unchecked((int)0x8A150029);
    199             public const int ERROR_INVALID_MANIFEST = unchecked((int)0x8A15002A);
    200             public const int ERROR_UPDATE_NOT_APPLICABLE = unchecked((int)0x8A15002B);
    201             public const int ERROR_UPDATE_ALL_HAS_FAILURE = unchecked((int)0x8A15002C);
    202             public const int ERROR_INSTALLER_SECURITY_CHECK_FAILED = unchecked((int)0x8A15002D);
    203             public const int ERROR_DOWNLOAD_SIZE_MISMATCH = unchecked((int)0x8A15002E);
    204             public const int ERROR_NO_UNINSTALL_INFO_FOUND = unchecked((int)0x8A15002F);
    205             public const int ERROR_EXEC_UNINSTALL_COMMAND_FAILED = unchecked((int)0x8A150030);
    206             public const int ERROR_ICU_BREAK_ITERATOR_ERROR = unchecked((int)0x8A150031);
    207             public const int ERROR_ICU_CASEMAP_ERROR = unchecked((int)0x8A150032);
    208             public const int ERROR_ICU_REGEX_ERROR = unchecked((int)0x8A150033);
    209             public const int ERROR_IMPORT_INSTALL_FAILED = unchecked((int)0x8A150034);
    210             public const int ERROR_NOT_ALL_PACKAGES_FOUND = unchecked((int)0x8A150035);
    211             public const int ERROR_JSON_INVALID_FILE = unchecked((int)0x8A150036);
    212             public const int ERROR_SOURCE_NOT_REMOTE = unchecked((int)0x8A150037);
    213             public const int ERROR_UNSUPPORTED_RESTSOURCE = unchecked((int)0x8A150038);
    214             public const int ERROR_RESTSOURCE_INVALID_DATA = unchecked((int)0x8A150039);
    215             public const int ERROR_BLOCKED_BY_POLICY = unchecked((int)0x8A15003A);
    216             public const int ERROR_RESTAPI_INTERNAL_ERROR = unchecked((int)0x8A15003B);
    217             public const int ERROR_RESTSOURCE_INVALID_URL = unchecked((int)0x8A15003C);
    218             public const int ERROR_RESTAPI_UNSUPPORTED_MIME_TYPE = unchecked((int)0x8A15003D);
    219             public const int ERROR_RESTSOURCE_INVALID_VERSION = unchecked((int)0x8A15003E);
    220             public const int ERROR_SOURCE_DATA_INTEGRITY_FAILURE = unchecked((int)0x8A15003F);
    221             public const int ERROR_STREAM_READ_FAILURE = unchecked((int)0x8A150040);
    222             public const int ERROR_PACKAGE_AGREEMENTS_NOT_ACCEPTED = unchecked((int)0x8A150041);
    223             public const int ERROR_PROMPT_INPUT_ERROR = unchecked((int)0x8A150042);
    224             public const int ERROR_UNSUPPORTED_SOURCE_REQUEST = unchecked((int)0x8A150043);
    225             public const int ERROR_RESTAPI_ENDPOINT_NOT_FOUND = unchecked((int)0x8A150044);
    226             public const int ERROR_SOURCE_OPEN_FAILED = unchecked((int)0x8A150045);
    227             public const int ERROR_SOURCE_AGREEMENTS_NOT_ACCEPTED = unchecked((int)0x8A150046);
    228             public const int ERROR_CUSTOMHEADER_EXCEEDS_MAXLENGTH = unchecked((int)0x8A150047);
    229             public const int ERROR_MISSING_RESOURCE_FILE = unchecked((int)0x8A150048);
    230             public const int ERROR_MSI_INSTALL_FAILED = unchecked((int)0x8A150049);
    231             public const int ERROR_INVALID_MSIEXEC_ARGUMENT = unchecked((int)0x8A15004A);
    232             public const int ERROR_FAILED_TO_OPEN_ALL_SOURCES = unchecked((int)0x8A15004B);
    233             public const int ERROR_DEPENDENCIES_VALIDATION_FAILED = unchecked((int)0x8A15004C);
    234             public const int ERROR_MISSING_PACKAGE = unchecked((int)0x8A15004D);
    235             public const int ERROR_INVALID_TABLE_COLUMN = unchecked((int)0x8A15004E);
    236             public const int ERROR_UPGRADE_VERSION_NOT_NEWER = unchecked((int)0x8A15004F);
    237             public const int ERROR_UPGRADE_VERSION_UNKNOWN = unchecked((int)0x8A150050);
    238             public const int ERROR_ICU_CONVERSION_ERROR = unchecked((int)0x8A150051);
    239             public const int ERROR_PORTABLE_INSTALL_FAILED = unchecked((int)0x8A150052);
    240             public const int ERROR_PORTABLE_REPARSE_POINT_NOT_SUPPORTED = unchecked((int)0x8A150053);
    241             public const int ERROR_PORTABLE_PACKAGE_ALREADY_EXISTS = unchecked((int)0x8A150054);
    242             public const int ERROR_PORTABLE_SYMLINK_PATH_IS_DIRECTORY = unchecked((int)0x8A150055);
    243             public const int ERROR_INSTALLER_PROHIBITS_ELEVATION = unchecked((int)0x8A150056);
    244             public const int ERROR_PORTABLE_UNINSTALL_FAILED = unchecked((int)0x8A150057);
    245             public const int ERROR_ARP_VERSION_VALIDATION_FAILED = unchecked((int)0x8A150058);
    246             public const int ERROR_UNSUPPORTED_ARGUMENT = unchecked((int)0x8A150059);
    247             public const int ERROR_BIND_WITH_EMBEDDED_NULL = unchecked((int)0x8A15005A);
    248             public const int ERROR_NESTEDINSTALLER_NOT_FOUND = unchecked((int)0x8A15005B);
    249             public const int ERROR_EXTRACT_ARCHIVE_FAILED = unchecked((int)0x8A15005C);
    250             public const int ERROR_NESTEDINSTALLER_INVALID_PATH = unchecked((int)0x8A15005D);
    251             public const int ERROR_PINNED_CERTIFICATE_MISMATCH = unchecked((int)0x8A15005E);
    252             public const int ERROR_INSTALL_LOCATION_REQUIRED = unchecked((int)0x8A15005F);
    253             public const int ERROR_ARCHIVE_SCAN_FAILED = unchecked((int)0x8A150060);
    254             public const int ERROR_PACKAGE_ALREADY_INSTALLED = unchecked((int)0x8A150061);
    255             public const int ERROR_PIN_ALREADY_EXISTS = unchecked((int)0x8A150062);
    256             public const int ERROR_PIN_DOES_NOT_EXIST = unchecked((int)0x8A150063);
    257             public const int ERROR_CANNOT_OPEN_PINNING_INDEX = unchecked((int)0x8A150064);
    258             public const int ERROR_MULTIPLE_INSTALL_FAILED = unchecked((int)0x8A150065);
    259             public const int ERROR_MULTIPLE_UNINSTALL_FAILED = unchecked((int)0x8A150066);
    260             public const int ERROR_NOT_ALL_QUERIES_FOUND_SINGLE = unchecked((int)0x8A150067);
    261             public const int ERROR_PACKAGE_IS_PINNED = unchecked((int)0x8A150068);
    262             public const int ERROR_PACKAGE_IS_STUB = unchecked((int)0x8A150069);
    263             public const int ERROR_APPTERMINATION_RECEIVED = unchecked((int)0x8A15006A);
    264             public const int ERROR_DOWNLOAD_DEPENDENCIES = unchecked((int)0x8A15006B);
    265             public const int ERROR_DOWNLOAD_COMMAND_PROHIBITED = unchecked((int)0x8A15006C);
    266             public const int ERROR_SERVICE_UNAVAILABLE = unchecked((int)0x8A15006D);
    267             public const int ERROR_RESUME_ID_NOT_FOUND = unchecked((int)0x8A15006E);
    268             public const int ERROR_CLIENT_VERSION_MISMATCH = unchecked((int)0x8A15006F);
    269             public const int ERROR_INVALID_RESUME_STATE = unchecked((int)0x8A150070);
    270             public const int ERROR_CANNOT_OPEN_CHECKPOINT_INDEX = unchecked((int)0x8A150071);
    271 
    272             public const int ERROR_NO_REPAIR_INFO_FOUND = unchecked((int)0x8A150079);
    273             public const int ERROR_REPAIR_NOT_SUPPORTED = unchecked((int)0x8A15007C);
    274             public const int ERROR_ADMIN_CONTEXT_REPAIR_PROHIBITED = unchecked((int)0x8A15007D);
    275 
    276             public const int ERROR_INSTALLER_ZERO_BYTE_FILE = unchecked((int)0x8A150086);
    277 
    278             public const int ERROR_INSTALL_PACKAGE_IN_USE = unchecked((int)0x8A150101);
    279             public const int ERROR_INSTALL_INSTALL_IN_PROGRESS = unchecked((int)0x8A150102);
    280             public const int ERROR_INSTALL_FILE_IN_USE = unchecked((int)0x8A150103);
    281             public const int ERROR_INSTALL_MISSING_DEPENDENCY = unchecked((int)0x8A150104);
    282             public const int ERROR_INSTALL_DISK_FULL = unchecked((int)0x8A150105);
    283             public const int ERROR_INSTALL_INSUFFICIENT_MEMORY = unchecked((int)0x8A150106);
    284             public const int ERROR_INSTALL_NO_NETWORK = unchecked((int)0x8A150107);
    285             public const int ERROR_INSTALL_CONTACT_SUPPORT = unchecked((int)0x8A150108);
    286             public const int ERROR_INSTALL_REBOOT_REQUIRED_TO_FINISH = unchecked((int)0x8A150109);
    287             public const int ERROR_INSTALL_REBOOT_REQUIRED_FOR_INSTALL = unchecked((int)0x8A15010A);
    288             public const int ERROR_INSTALL_REBOOT_INITIATED = unchecked((int)0x8A15010B);
    289             public const int ERROR_INSTALL_CANCELLED_BY_USER = unchecked((int)0x8A15010C);
    290             public const int ERROR_INSTALL_ALREADY_INSTALLED = unchecked((int)0x8A15010D);
    291             public const int ERROR_INSTALL_DOWNGRADE = unchecked((int)0x8A15010E);
    292             public const int ERROR_INSTALL_BLOCKED_BY_POLICY = unchecked((int)0x8A15010F);
    293             public const int ERROR_INSTALL_DEPENDENCIES = unchecked((int)0x8A150110);
    294             public const int ERROR_INSTALL_PACKAGE_IN_USE_BY_APPLICATION = unchecked((int)0x8A150111);
    295             public const int ERROR_INSTALL_INVALID_PARAMETER = unchecked((int)0x8A150112);
    296             public const int ERROR_INSTALL_SYSTEM_NOT_SUPPORTED = unchecked((int)0x8A150113);
    297             public const int APPINSTALLER_CLI_ERROR_INSTALL_UPGRADE_NOT_SUPPORTED = unchecked((int)0x8A150114);
    298 
    299             public const int INSTALLED_STATUS_ARP_ENTRY_NOT_FOUND = unchecked((int)0x8A150201);
    300             public const int INSTALLED_STATUS_INSTALL_LOCATION_NOT_APPLICABLE = unchecked((int)0x0A150202);
    301             public const int INSTALLED_STATUS_INSTALL_LOCATION_NOT_FOUND = unchecked((int)0x8A150203);
    302             public const int INSTALLED_STATUS_FILE_HASH_MISMATCH = unchecked((int)0x8A150204);
    303             public const int INSTALLED_STATUS_FILE_NOT_FOUND = unchecked((int)0x8A150205);
    304             public const int INSTALLED_STATUS_FILE_FOUND_WITHOUT_HASH_CHECK = unchecked((int)0x0A150206);
    305             public const int INSTALLED_STATUS_FILE_ACCESS_ERROR = unchecked((int)0x8A150207);
    306 
    307             public const int CONFIG_ERROR_INVALID_CONFIGURATION_FILE = unchecked((int)0x8A15C001);
    308             public const int CONFIG_ERROR_INVALID_YAML = unchecked((int)0x8A15C002);
    309             public const int CONFIG_ERROR_INVALID_FIELD_TYPE = unchecked((int)0x8A15C003);
    310             public const int CONFIG_ERROR_UNKNOWN_CONFIGURATION_FILE_VERSION = unchecked((int)0x8A15C004);
    311             public const int CONFIG_ERROR_SET_APPLY_FAILED = unchecked((int)0x8A15C005);
    312             public const int CONFIG_ERROR_DUPLICATE_IDENTIFIER = unchecked((int)0x8A15C006);
    313             public const int CONFIG_ERROR_MISSING_DEPENDENCY = unchecked((int)0x8A15C007);
    314             public const int CONFIG_ERROR_DEPENDENCY_UNSATISFIED = unchecked((int)0x8A15C008);
    315             public const int CONFIG_ERROR_ASSERTION_FAILED = unchecked((int)0x8A15C009);
    316             public const int CONFIG_ERROR_MANUALLY_SKIPPED = unchecked((int)0x8A15C00A);
    317             public const int CONFIG_ERROR_WARNING_NOT_ACCEPTED = unchecked((int)0x8A15C00B);
    318             public const int CONFIG_ERROR_SET_DEPENDENCY_CYCLE = unchecked((int)0x8A15C00C);
    319             public const int CONFIG_ERROR_INVALID_FIELD_VALUE = unchecked((int)0x8A15C00D);
    320             public const int CONFIG_ERROR_MISSING_FIELD = unchecked((int)0x8A15C00E);
    321             public const int CONFIG_ERROR_TEST_FAILED = unchecked((int)0x8A15C00F);
    322             public const int CONFIG_ERROR_TEST_NOT_RUN = unchecked((int)0x8A15C010);
    323             public const int WINGET_CONFIG_ERROR_GET_FAILED = unchecked((int)0x8A15C011);
    324 
    325             public const int CONFIG_ERROR_UNIT_NOT_INSTALLED = unchecked((int)0x8A15C101);
    326             public const int CONFIG_ERROR_UNIT_NOT_FOUND_REPOSITORY = unchecked((int)0x8A15C102);
    327             public const int CONFIG_ERROR_UNIT_MULTIPLE_MATCHES = unchecked((int)0x8A15C103);
    328             public const int CONFIG_ERROR_UNIT_INVOKE_GET = unchecked((int)0x8A15C104);
    329             public const int CONFIG_ERROR_UNIT_INVOKE_TEST = unchecked((int)0x8A15C105);
    330             public const int CONFIG_ERROR_UNIT_INVOKE_SET = unchecked((int)0x8A15C106);
    331             public const int CONFIG_ERROR_UNIT_MODULE_CONFLICT = unchecked((int)0x8A15C107);
    332             public const int CONFIG_ERROR_UNIT_IMPORT_MODULE = unchecked((int)0x8A15C108);
    333             public const int CONFIG_ERROR_UNIT_INVOKE_INVALID_RESULT = unchecked((int)0x8A15C109);
    334             public const int CONFIG_ERROR_UNIT_SETTING_CONFIG_ROOT = unchecked((int)0x8A15C110);
    335             public const int CONFIG_ERROR_UNIT_IMPORT_MODULE_ADMIN = unchecked((int)0x8A15C111);
    336         }
    337 
    338 #pragma warning restore SA1310 // Field names should not contain underscore
    339 #pragma warning restore SA1600 // ElementsMustBeDocumented
    340     }
    341 }