Skip to content

msiexec error codes

What msiexec exit codes and Windows Installer errors mean — 1603, 1618, 1638, 1722, 3010 and more — with how to find the real cause.

msiexec exit codes

The number msiexec returns when it finishes (also what Intune, ConfigMgr and scripts see).

CodeWhat it means
0

ERROR_SUCCESS

The installation completed successfully.

13

ERROR_INVALID_DATA

The data is invalid.

87

ERROR_INVALID_PARAMETER

One of the parameters was invalid.

120

ERROR_CALL_NOT_IMPLEMENTED

The function isn't available on this system — often a custom action calling an API this Windows doesn't have.

1259

ERROR_APPHELP_BLOCK

Windows' compatibility database blocked the installation.

1601

ERROR_INSTALL_SERVICE_FAILURE

The Windows Installer service could not be reached.

1602

ERROR_INSTALL_USEREXIT

The user cancelled the installation.

1603

ERROR_INSTALL_FAILURE

A fatal error occurred during installation. It's the generic failure code: the real cause is in the verbose log.

What to do: Re-run with /l*v install.log and search the log for "return value 3": the lines just above name the action that failed.

1604

ERROR_INSTALL_SUSPEND

The installation was suspended and is incomplete.

1605

ERROR_UNKNOWN_PRODUCT

This action only works on installed products — e.g. uninstalling a product code that isn't installed.

1606

ERROR_UNKNOWN_FEATURE

The feature identifier isn't registered.

1607

ERROR_UNKNOWN_COMPONENT

The component identifier isn't registered.

1608

ERROR_UNKNOWN_PROPERTY

Unknown property.

1609

ERROR_INVALID_HANDLE_STATE

A handle is in an invalid state.

1610

ERROR_BAD_CONFIGURATION

The product's configuration data is corrupt.

1611

ERROR_INDEX_ABSENT

The component qualifier isn't present.

1612

ERROR_INSTALL_SOURCE_ABSENT

The installation source isn't available: Windows can't find the original .msi (or its cached copy) to repair, patch or remove.

What to do: Point Windows at the same .msi version (same package code), or uninstall with that file: msiexec /x path\to\file.msi.

1613

ERROR_INSTALL_PACKAGE_VERSION

This version of Windows Installer can't install the package.

1614

ERROR_PRODUCT_UNINSTALLED

The product is uninstalled.

1615

ERROR_BAD_QUERY_SYNTAX

The SQL query syntax is invalid or unsupported.

1616

ERROR_INVALID_FIELD

The record field doesn't exist.

1618

ERROR_INSTALL_ALREADY_RUNNING

Another installation is already in progress. Only one runs at a time.

What to do: Wait and retry (deployment tools treat 1618 as retryable), or find the running msiexec.exe.

1619

ERROR_INSTALL_PACKAGE_OPEN_FAILED

The package couldn't be opened: wrong path, no access, or not an .msi.

1620

ERROR_INSTALL_PACKAGE_INVALID

The file isn't a valid Windows Installer package (corrupt or truncated download).

1621

ERROR_INSTALL_UI_FAILURE

The Windows Installer user interface failed to start.

1622

ERROR_INSTALL_LOG_FAILURE

The log file couldn't be opened — check the /l path and its folder.

1623

ERROR_INSTALL_LANGUAGE_UNSUPPORTED

The package's language isn't supported on this system.

1624

ERROR_INSTALL_TRANSFORM_FAILURE

A transform couldn't be applied — check the TRANSFORMS paths and that each .mst matches the package.

1625

ERROR_INSTALL_PACKAGE_REJECTED

System policy forbids this installation.

1626

ERROR_FUNCTION_NOT_CALLED

The function couldn't be executed.

1627

ERROR_FUNCTION_FAILED

The function failed while running.

1628

ERROR_INVALID_TABLE

An invalid or unknown table was specified.

1629

ERROR_DATATYPE_MISMATCH

The data supplied is of the wrong type.

1630

ERROR_UNSUPPORTED_TYPE

Data of this type isn't supported.

1631

ERROR_CREATE_FAILED

The Windows Installer service failed to start.

1632

ERROR_INSTALL_TEMP_UNWRITABLE

The Temp folder is full or not writable.

1633

ERROR_INSTALL_PLATFORM_UNSUPPORTED

The package doesn't support this processor — e.g. a 64-bit .msi on 32-bit Windows.

1634

ERROR_INSTALL_NOTUSED

The component isn't used on this machine.

1635

ERROR_PATCH_PACKAGE_OPEN_FAILED

The patch (.msp) couldn't be opened.

1636

ERROR_PATCH_PACKAGE_INVALID

The patch (.msp) is invalid.

1637

ERROR_PATCH_PACKAGE_UNSUPPORTED

This version of Windows Installer can't process the patch.

1638

ERROR_PRODUCT_VERSION

Another version of this product is already installed and the package isn't set up to upgrade it.

What to do: Uninstall the installed version first, or check the package's Upgrade table (open it in the analyzer).

1639

ERROR_INVALID_COMMAND_LINE

Invalid command-line argument — check quoting of paths and PROPERTY=value pairs.

1640

ERROR_INSTALL_REMOTE_DISALLOWED

Installing from a Terminal Server client session isn't allowed for this user.

1641

ERROR_SUCCESS_REBOOT_INITIATED

Success — the installer started a restart to finish.

1642

ERROR_PATCH_TARGET_NOT_FOUND

The patch's target product is missing or is a different version.

1643

ERROR_PATCH_PACKAGE_REJECTED

System policy forbids this patch.

1644

ERROR_INSTALL_TRANSFORM_REJECTED

System policy forbids one or more customizations.

1645

ERROR_INSTALL_REMOTE_PROHIBITED

Installing over a Remote Desktop Connection isn't allowed.

1646

ERROR_PATCH_REMOVAL_UNSUPPORTED

This patch can't be removed.

1647

ERROR_UNKNOWN_PATCH

The patch isn't applied to this product.

1648

ERROR_PATCH_NO_SEQUENCE

No valid order could be found for this set of patches.

1649

ERROR_PATCH_REMOVAL_DISALLOWED

Policy forbids removing the patch.

1650

ERROR_INVALID_PATCH_XML

The patch's XML data is invalid.

1651

ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT

An administrator couldn't patch an advertised per-user managed or per-machine product.

1652

ERROR_INSTALL_SERVICE_SAFEBOOT

Windows Installer isn't available in Safe Mode.

1653

ERROR_ROLLBACK_DISABLED

A multi-package transaction couldn't run because rollback is disabled.

1654

ERROR_INSTALL_REJECTED

The app isn't supported on this version of Windows.

3010

ERROR_SUCCESS_REBOOT_REQUIRED

Success — a restart is needed to finish (deployment tools report a soft reboot).

Installer error messages

The numbered errors shown in installer dialogs and written to the log.

CodeWhat it means
1303

Insufficient privileges on a folder

The installer can't access a target folder — usually permissions on Program Files or a redirected folder.

1304

Error writing to file

A file couldn't be written; check access and that nothing locks it (antivirus, a running copy).

1310

Error writing to file

Writing a file failed — the folder is protected or the file is in use.

1311

Source file not found (cabinet)

A cabinet or source file is missing — incomplete download, or an external .cab not next to the .msi.

1316

Network error / account already exists

Reading the source failed, or the cached package name doesn't match the one used originally.

1325

Not a valid short file name

A folder name is invalid — often a redirected profile folder pointing to a missing path.

1327

Invalid drive

A target path uses a drive that doesn't exist on this machine.

1401

Could not create registry key

A registry key couldn't be created — permissions on the key or a security product blocking it.

1402

Could not open registry key

A registry key couldn't be opened, usually for lack of permissions.

1406

Could not write registry value

A registry value couldn't be written.

1500

Another installation is in progress

Same as exit code 1618: finish or wait for the other installation.

1706

No valid source could be found

Windows needs the original package (repair or a feature on demand) and can't find it.

1714

Older version can't be removed

Upgrading failed because the old version's uninstall failed — often its cached .msi is missing.

1720

Custom action script error

A VBScript or JScript custom action failed. The log names the action and line.

What to do: Open the package in the analyzer: the Custom actions tab shows the script source.

1721

Program required couldn't be run

An executable custom action couldn't start — wrong path or a missing file.

1722

A program run as part of setup failed

An executable custom action ran and returned an error code.

What to do: Find the action's command line in the analyzer's Custom actions tab and run it by hand to see its error.

1723

DLL required couldn't be run

A DLL custom action couldn't load or its entry point is missing.

1904

Module failed to register

Self-registration of a DLL or OCX failed (regsvr32 style).

1920

Service failed to start

A service the package installs didn't start — missing dependency, wrong account or the binary crashed.

1923

Service couldn't be installed

Creating a service failed — usually permissions or a service with the same name.

1935

Assembly install error

Installing a .NET or side-by-side assembly failed.

2203

Database couldn't be opened

The package or its temp copy couldn't be opened — permissions on the Temp folder.

2502

RunScript called when not marked in progress

Typically the Temp folder isn't writable for the installer's account.

2503

RunScript called when not marked in progress

Same family as 2502: permissions on the Temp folder.

2738

Could not access VBScript runtime

A VBScript custom action can't run: the VBScript engine is missing or unregistered.

2755

Server returned unexpected error

The package couldn't be processed — often the .msi sits in an encrypted or inaccessible folder.

Finding the real cause

  1. Run the installation again with a verbose log: msiexec /i package.msi /l*v install.log
  2. Search the log for "return value 3": the action just above it is the one that failed.
  3. Look a few lines higher for the installer error number (Error 1722, 1920…) and check it here.
  4. Open the package in the analyzer to read the failing custom action's command line or script.