Windows Installer Error Codes

by JasonRShaver 28. April 2008 16:43

Here are the valid error return code that an MSI can return (via Windows Installer):

 

Value
Description
Error Code
0
Action completed successfully.
ERROR_SUCCESS
13
The data is invalid.
ERROR_INVALID_DATA
87
One of the parameters was invalid.
ERROR_INVALID_PARAMETER
120
This function is not available for this platform. It is only available on Windows 2000 and Windows XP with Window Installer version 2.0.
ERROR_CALL_NOT_IMPLEMENTED
1259
This error code only occurs when using Windows Installer version 2.0 and Windows XP or later. If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog informing the user and asking whether to try to install anyway. This error code is returned if the user chooses not to try the installation.
ERROR_APPHELP_BLOCK
1601
The Windows Installer service could not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered.
ERROR_INSTALL_SERVICE_FAILURE
1602
User cancel installation.
ERROR_INSTALL_USEREXIT
1603
Fatal error during installation.
ERROR_INSTALL_FAILURE
1604
Installation suspended, incomplete.
ERROR_INSTALL_SUSPEND
1605
This action is only valid for products that are currently installed.
ERROR_UNKNOWN_PRODUCT
1606
Feature ID not registered.
ERROR_UNKNOWN_FEATURE
1607
Component ID not registered.
ERROR_UNKNOWN_COMPONENT
1608
Unknown property.
ERROR_UNKNOWN_PROPERTY
1609
Handle is in an invalid state.
ERROR_INVALID_HANDLE_STATE
1610
The configuration data for this product is corrupt. Contact your support personnel.
ERROR_BAD_CONFIGURATION
1611
Component qualifier not present.
ERROR_INDEX_ABSENT
1612
The installation source for this product is not available. Verify that the source exists and that you can access it.
ERROR_INSTALL_SOURCE_ABSENT
1613
This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
ERROR_INSTALL_PACKAGE_VERSION
1614
Product is uninstalled.
ERROR_PRODUCT_UNINSTALLED
1615
SQL query syntax invalid or unsupported.
ERROR_BAD_QUERY_SYNTAX
1616
Record field does not exist.
ERROR_INVALID_FIELD
1618
Another installation is already in progress. Complete that installation before proceeding with this install.
ERROR_INSTALL_ALREADY_RUNNING
1619
This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
ERROR_INSTALL_PACKAGE_OPEN_FAILED
1620
This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
ERROR_INSTALL_PACKAGE_INVALID
1621
There was an error starting the Windows Installer service user interface. Contact your support personnel.
ERROR_INSTALL_UI_FAILURE
1622
Error opening installation log file. Verify that the specified log file location exists and is writable.
ERROR_INSTALL_LOG_FAILURE
1623
This language of this installation package is not supported by your system.
ERROR_INSTALL_LANGUAGE_UNSUPPORTED
1624
Error applying transforms. Verify that the specified transform paths are valid.
ERROR_INSTALL_TRANSFORM_FAILURE
1625
This installation is forbidden by system policy. Contact your system administrator.
ERROR_INSTALL_PACKAGE_REJECTED
1626
Function could not be executed.
ERROR_FUNCTION_NOT_CALLED
1627
Function failed during execution.
ERROR_FUNCTION_FAILED
1628
Invalid or unknown table specified.
ERROR_INVALID_TABLE
1629
Data supplied is of wrong type.
ERROR_DATATYPE_MISMATCH
1630
Data of this type is not supported.
ERROR_UNSUPPORTED_TYPE
1631
The Windows Installer service failed to start. Contact your support personnel.
ERROR_CREATE_FAILED
1632
The temp folder is either full or inaccessible. Verify that the temp folder exists and that you can write to it.
ERROR_INSTALL_TEMP_UNWRITABLE
1633
This installation package is not supported on this platform. Contact your application vendor.
ERROR_INSTALL_PLATFORM_UNSUPPORTED
1634
Component not used on this machine
ERROR_INSTALL_NOTUSED
1635
This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
ERROR_PATCH_PACKAGE_OPEN_FAILED
1636
This patch package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package.
ERROR_PATCH_PACKAGE_INVALID
1637
This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
ERROR_PATCH_PACKAGE_UNSUPPORTED
1638
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
ERROR_PRODUCT_VERSION
1639
Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
ERROR_INVALID_COMMAND_LINE
1640
Installation from a Terminal Server client session not permitted for current user.
ERROR_INSTALL_REMOTE_DISALLOWED
1641
The installer has started a reboot. This error code not available on Windows Installer version 1.0.
ERROR_SUCCESS_REBOOT_INITIATED
1642
The installer cannot install the upgrade patch because the program being upgraded may be missing or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch.
This error code is not available on Windows Installer version 1.0.
ERROR_PATCH_TARGET_NOT_FOUND
1643
The patch package is not permitted by system policy. This error code is available with Windows Installer versions 2.0 or later.
ERROR_PATCH_PACKAGE_REJECTED
1644
One or more customizations are not permitted by system policy. This error code is available with Windows Installer versions 2.0 or later.
ERROR_INSTALL_TRANSFORM_REJECTED
3010
A reboot is required to complete the install. This does not include installs where the ForceReboot action is run. This error code not available on Windows Installer version 1.0.
ERROR_SUCCESS_REBOOT_REQUIRED

 

Tags:

Blog

2008 NCO Spring Ahead 5K Run

by JasonRShaver 22. April 2008 16:42

I ran the 2008 NCO Spring Ahead 5K race and had the following results:

Place Age Sex Name No. S Age City St Time Pace
===== === === ===================== ===== = ==== ============ == ======= =====
293 15 195 JASON SHAVER 1062 M 27 BOLINGBROOK IL 30:00 9:40
 
My last 5K:

 

AgePlace
Name
Sex
Age
City
State
Time
Overall
SexPlace
9
SHAVER JASON
M
26
BOLINGBROOK
IL
28:07.91
189
136

 

 
590 people in the first race
350 people in the second race so:
 
I placed in the 50% percentile in the this race and 54% percentile my last race I fell back 6% compared to the pack. The 49% percentile runner in this race got a time of 29:34, 26 seconds better than me.
 

The best time in this race was 17:30 and my last race the best time was 16:12 so this race really was harder.

 

Tags:

Blog

DEP, COM, and C#

by JasonRShaver 14. April 2008 16:42

I recently worked on an issue where a .NET (C#) application called into a COM component written C++ (7.1) to communicate with the hardware. This code has been in the wild for about 5 years at this point. When we started doing tests with Vista (32-bit) we would get the following:

Exception: Unhandled System Exception Type: System.Runtime.InteropServices.COMException Exception Message: Creating an instance of the COM component with CLSID {E2B8DFBB-***-***-AE5D-57CEF9A2****} from the IClassFactory failed due to the following error: 80010105. Stack Trace: at ***.Scanner.StartScan() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

And this really confused me. I double checked that everything was registered fine, that we had the correct security settings, etc. At one point in this testing, I got a DEP exception and started going down that path. I found that I was unable to disable DEP for .NET programs using the Vista interface.

The Solution:

There is a NXCOMPAT flag that when set to 'YES' will tell Vista to run your code with DEP. Now there is no compiler switch to turn it off (that I found) so what you have to do is change the PE header of the executable. You can most easily do this using the EDITBIN.EXE tool found in "Program Files\Microsoft Visual Studio 8\VC\bin". (You may need the MSPDB80.DLL file from "Program Files\Microsoft Visual Studio 8\Common7\IDE". Run the following command:

editbin.exe /NXCOMPAT:NO myapp.exe

Now let me mention, this is a BAD IDEA. This means that something in your code is allowing code to run from a data page and that really needs to get fixed. But to help the QA process move forward while fixing this issue, this is a quick and simple way to handle it.

Tags:

Blog

About the author

I am a software developer working for Microsoft in Redmond, WA.  In addition, my wife and I own TTXOnline, what is likely the 3rd largest table tennis store in the US.

Month List

Page List