[This is preliminary documentation and subject to change.]
The MsiInstallMissingComponent function installs files that are unexpectedly missing.
UINT MsiInstallMissingComponent(
LPCTSTR szProduct, // product code
LPCTSTR szComponent, // component ID
INSTALLSTATE eInstallState // install type
);
Value | Meaning |
---|---|
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. |
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.
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.