Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MsiInstallMissingComponent function

The MsiInstallMissingComponent function installs files that are unexpectedly missing.

Syntax


UINT MsiInstallMissingComponent(
  _In_  LPCTSTR szProduct,
  _In_  LPCTSTR szComponent,
  _In_  INSTALLSTATE eInstallState
);

Parameters

szProduct [in]

Specifies the product code for the product that owns the component to be installed.

szComponent [in]

Identifies the component to be installed.

eInstallState [in]

Specifies the way the component should be installed. This parameter must be one of the following values.

ValueMeaning
INSTALLSTATE_LOCAL

The component should be locally installed.

INSTALLSTATE_SOURCE

The component should be installed to run from the source.

INSTALLSTATE_DEFAULT

The component should be installed according to the installer defaults.

 

Return value

ValueMeaning
ERROR_BAD_CONFIGURATION

The configuration information is corrupt.

ERROR_INSTALL_FAILURE

The installation failed.

ERROR_INSTALL_SOURCE_ABSENT

The source was unavailable.

ERROR_INSTALL_SUSPEND

The installation was suspended.

ERROR_INSTALL_USEREXIT

The user exited the installation.

ERROR_INVALID_PARAMETER

One of the parameters is invalid.

ERROR_SUCCESS

The function completed successfully.

ERROR_UNKNOWN_PRODUCT

The product code is unrecognized.

 

For more information about error messages, see Displayed Error Messages

Remarks

The MsiInstallMissingComponent function resolves the feature(s) that the component belongs to. Then, the product feature that requires the least additional disk space is installed.

Requirements

Version

Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

Header

Msi.h

Library

Msi.lib

DLL

Msi.dll

Unicode and ANSI names

MsiInstallMissingComponentW (Unicode) and MsiInstallMissingComponentA (ANSI)

See also

Multiple-Package Installations

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.