MsiInstallMissingFile Function

Windows Installer

MsiInstallMissingFile Function

The MsiInstallMissingFile function installs files that are unexpectedly missing.

Syntax

C++UINT MsiInstallMissingFile(
  __in  LPCTSTR szProduct,
  __in  LPCTSTR szFile
);

Parameters

szProduct [in]

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

szFile [in]

Specifies the file to be installed.

Return Value

Value Meaning
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.

 

For more information about error messages, see Displayed Error Messages.

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.

Requirements

VersionWindows Installer 5.0 on 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, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.
HeaderMsi.h
LibraryMsi.lib
DLLMsi.dll
Unicode and ANSI namesMsiInstallMissingFileW (Unicode) and MsiInstallMissingFileA (ANSI)

See Also

Installation and Configuration Functions
Multiple-Package Installations

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.