The MsiInstallMissingFile function installs files that are unexpectedly missing.
UINT MsiInstallMissingFileA( LPCSTR szProduct, LPCSTR szFile );
Specifies the product code for the product that owns the file to be installed.
Specifies the file to be installed.
||The configuration information is corrupt.|
||The installation failed.|
||The source was unavailable.|
||The installation was suspended.|
||The user exited the installation.|
||A parameter was invalid.|
||The function completed successfully.|
||The product code is unrecognized.|
For more information about error messages, see Displayed Error Messages.
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.
|Minimum supported client||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.|