From 2707216ba830a361f4cb0b191c3f43ca9c419133 Mon Sep 17 00:00:00 2001 From: Kaleb Luedtke Date: Wed, 26 Oct 2022 15:05:04 -0500 Subject: [PATCH] Pull in additional return codes from upstream/master --- .../Manifest/ManifestCommon.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/AppInstallerCommonCore/Manifest/ManifestCommon.cpp b/src/AppInstallerCommonCore/Manifest/ManifestCommon.cpp index 811215b99a..d2ab7675a8 100644 --- a/src/AppInstallerCommonCore/Manifest/ManifestCommon.cpp +++ b/src/AppInstallerCommonCore/Manifest/ManifestCommon.cpp @@ -650,9 +650,20 @@ namespace AppInstaller::Manifest { ERROR_INSTALL_UI_FAILURE, ExpectedReturnCodeEnum::ContactSupport }, { ERROR_CREATE_FAILED, ExpectedReturnCodeEnum::ContactSupport }, { ERROR_PRODUCT_VERSION, ExpectedReturnCodeEnum::AlreadyInstalled }, - { ERROR_INSTALL_REJECTED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_INSTALL_REJECTED, ExpectedReturnCodeEnum::SystemNotSupported }, + { ERROR_INSTALL_PACKAGE_REJECTED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_INSTALL_TRANSFORM_REJECTED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_PATCH_PACKAGE_REJECTED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_PATCH_REMOVAL_DISALLOWED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_INSTALL_REMOTE_DISALLOWED, ExpectedReturnCodeEnum::BlockedByPolicy }, + { ERROR_INVALID_PARAMETER, ExpectedReturnCodeEnum::InvalidParameter }, + { ERROR_INVALID_TABLE, ExpectedReturnCodeEnum::InvalidParameter }, + { ERROR_INVALID_COMMAND_LINE, ExpectedReturnCodeEnum::InvalidParameter }, + { ERROR_INVALID_PATCH_XML, ExpectedReturnCodeEnum::InvalidParameter }, + { ERROR_INSTALL_LANGUAGE_UNSUPPORTED, ExpectedReturnCodeEnum::SystemNotSupported }, + { ERROR_INSTALL_PLATFORM_UNSUPPORTED, ExpectedReturnCodeEnum::SystemNotSupported }, { -1, ExpectedReturnCodeEnum::CancelledByUser }, - // 1 when EXE bootstrapper is launched with wrong value for /aespassword parameter + { 1, ExpectedReturnCodeEnum::InvalidParameter }, }; case InstallerTypeEnum::Inno: // See https://jrsoftware.org/ishelp/index.php?topic=setupexitcodes