MsiInstallMissingFile

[This is preliminary documentation and subject to change.]

The MsiInstallMissingFile function installs files that are unexpectedly missing.

UINT MsiInstallMissingFile(
  LPCTSTR szProduct,      // product code
  LPCTSTR szFile          // file name, without path
);
 

Parameters

szProduct
Specifies the product code for the product that owns the file to be installed.
szFile
Identifies the file to be installed.

Return Values

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
A parameter was invalid.
ERROR_SUCCESS
The function completed successfully.
ERROR_UNKNOWN_PRODUCT
The product code is unrecognized.

Remarks

The MsiInstallMissingFile function obtains the component that the file belongs to from the file table. Then, the product feature that requires the least additional disk space is installed.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msi.h.
  Import Library: Use msi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Installation and Configuration Functions