|
| 1 | +# MSI Interop - Not Implemented Functions |
| 2 | + |
| 3 | +These functions from the Windows MSI API (Msi.h / MsiQuery.h) are declared and exported |
| 4 | +by msi-interop but return `ERROR_CALL_NOT_IMPLEMENTED` (or equivalent error value). |
| 5 | +They cannot be meaningfully implemented because they require the Windows Installer Service, |
| 6 | +which is a system service that manages installed products, features, and components on the machine. |
| 7 | + |
| 8 | +libmsi only provides MSI database file manipulation capabilities (open, query, modify, commit). |
| 9 | +It does not implement the Windows Installer engine. |
| 10 | + |
| 11 | +## Implemented Functions (Database Authoring API) |
| 12 | + |
| 13 | +The following functions ARE fully implemented via libmsi: |
| 14 | + |
| 15 | +- MsiOpenDatabaseA/W, MsiDatabaseCommit, MsiGetDatabaseState |
| 16 | +- MsiDatabaseOpenViewA/W, MsiViewExecute, MsiViewFetch, MsiViewModify |
| 17 | +- MsiViewGetColumnInfo, MsiViewClose, MsiViewGetErrorA/W |
| 18 | +- MsiCreateRecord, MsiRecordIsNull, MsiRecordDataSize |
| 19 | +- MsiRecordSetInteger, MsiRecordSetStringA/W, MsiRecordGetInteger, MsiRecordGetStringA/W |
| 20 | +- MsiRecordGetFieldCount, MsiRecordSetStreamA/W, MsiRecordReadStream, MsiRecordClearData |
| 21 | +- MsiGetSummaryInformationA/W, MsiSummaryInfoGetPropertyCount |
| 22 | +- MsiSummaryInfoSetPropertyA/W, MsiSummaryInfoGetPropertyA/W, MsiSummaryInfoPersist |
| 23 | +- MsiCloseHandle, MsiCloseAllHandles, MsiGetLastErrorRecord |
| 24 | +- MsiFormatRecordA/W, MsiVerifyPackageA/W |
| 25 | +- MsiDatabaseGetPrimaryKeysA/W, MsiDatabaseIsTablePersistentA/W |
| 26 | +- MsiDatabaseImportA/W, MsiDatabaseExportA/W |
| 27 | +- MsiDatabaseMergeA/W, MsiDatabaseApplyTransformA/W |
| 28 | + |
| 29 | +## Not Implemented - Categories |
| 30 | + |
| 31 | +### Product/Feature/Component State Queries |
| 32 | + |
| 33 | +These functions query the installation state of products, features, and components as |
| 34 | +tracked by the Windows Installer Service in its internal registration database (registry). |
| 35 | +libmsi has no access to this data. |
| 36 | + |
| 37 | +- MsiQueryProductStateA/W |
| 38 | +- MsiGetProductInfoA/W |
| 39 | +- MsiGetProductInfoExA/W |
| 40 | +- MsiGetProductCodeA/W |
| 41 | +- MsiGetUserInfoA/W |
| 42 | +- MsiCollectUserInfoA/W |
| 43 | +- MsiQueryFeatureStateA/W |
| 44 | +- MsiQueryFeatureStateExA/W |
| 45 | +- MsiUseFeatureA/W |
| 46 | +- MsiUseFeatureExA/W |
| 47 | +- MsiGetFeatureUsageA/W |
| 48 | +- MsiGetComponentPathA/W |
| 49 | +- MsiGetComponentPathExA/W |
| 50 | +- MsiQueryComponentStateA/W |
| 51 | +- MsiLocateComponentA/W |
| 52 | +- MsiIsProductElevatedA/W |
| 53 | +- MsiGetProductPropertyA/W |
| 54 | +- MsiGetFeatureInfoA/W |
| 55 | + |
| 56 | +### Installation/Configuration |
| 57 | + |
| 58 | +These functions trigger product installation, configuration, or reinstallation through |
| 59 | +the Windows Installer engine. They execute installation sequences, run custom actions, |
| 60 | +and modify the system. libmsi cannot perform any of these operations. |
| 61 | + |
| 62 | +- MsiInstallProductA/W |
| 63 | +- MsiConfigureProductA/W |
| 64 | +- MsiConfigureProductExA/W |
| 65 | +- MsiReinstallProductA/W |
| 66 | +- MsiConfigureFeatureA/W |
| 67 | +- MsiReinstallFeatureA/W |
| 68 | +- MsiInstallMissingComponentA/W |
| 69 | +- MsiInstallMissingFileA/W |
| 70 | + |
| 71 | +### Advertising |
| 72 | + |
| 73 | +These functions manage Windows Installer advertisement scripts, which allow products to |
| 74 | +be "advertised" (registered for on-demand installation) without being fully installed. |
| 75 | +This is a Windows Installer Service feature with no equivalent in libmsi. |
| 76 | + |
| 77 | +- MsiAdvertiseProductA/W |
| 78 | +- MsiAdvertiseProductExA/W |
| 79 | +- MsiProcessAdvertiseScriptA/W |
| 80 | +- MsiAdvertiseScriptA/W |
| 81 | +- MsiGetProductInfoFromScriptA/W |
| 82 | + |
| 83 | +### Patch Management |
| 84 | + |
| 85 | +These functions apply, enumerate, and manage patches (.msp files) through the Windows |
| 86 | +Installer Service, which tracks patch application state in its registration database. |
| 87 | +libmsi does not implement patch application logic. |
| 88 | + |
| 89 | +- MsiApplyPatchA/W |
| 90 | +- MsiGetPatchInfoA/W |
| 91 | +- MsiEnumPatchesA/W |
| 92 | +- MsiRemovePatchesA/W |
| 93 | +- MsiExtractPatchXMLDataA/W |
| 94 | +- MsiGetPatchInfoExA/W |
| 95 | +- MsiApplyMultiplePatchesA/W |
| 96 | +- MsiDeterminePatchSequenceA/W |
| 97 | +- MsiDetermineApplicablePatchesA/W |
| 98 | +- MsiEnumPatchesExA/W |
| 99 | +- MsiGetPatchFileListA/W |
| 100 | + |
| 101 | +### Enumeration (Products, Features, Components) |
| 102 | + |
| 103 | +These functions enumerate installed products, features, components, and their relationships |
| 104 | +as registered in the Windows Installer Service database. libmsi has no access to the |
| 105 | +system's product registration data. |
| 106 | + |
| 107 | +- MsiEnumProductsA/W |
| 108 | +- MsiEnumProductsExA/W |
| 109 | +- MsiEnumRelatedProductsA/W |
| 110 | +- MsiEnumFeaturesA/W |
| 111 | +- MsiEnumComponentsA/W |
| 112 | +- MsiEnumComponentsExA/W |
| 113 | +- MsiEnumClientsA/W |
| 114 | +- MsiEnumClientsExA/W |
| 115 | +- MsiEnumComponentQualifiersA/W |
| 116 | + |
| 117 | +### Source List Management |
| 118 | + |
| 119 | +These functions manage the source list for installed products, controlling where the |
| 120 | +Windows Installer Service looks for installation media. This data is stored in the |
| 121 | +system registry by the installer service. |
| 122 | + |
| 123 | +- MsiSourceListClearAllA/W |
| 124 | +- MsiSourceListAddSourceA/W |
| 125 | +- MsiSourceListForceResolutionA/W |
| 126 | +- MsiSourceListAddSourceExA/W |
| 127 | +- MsiSourceListAddMediaDiskA/W |
| 128 | +- MsiSourceListClearSourceA/W |
| 129 | +- MsiSourceListClearMediaDiskA/W |
| 130 | +- MsiSourceListClearAllExA/W |
| 131 | +- MsiSourceListForceResolutionExA/W |
| 132 | +- MsiSourceListSetInfoA/W |
| 133 | +- MsiSourceListGetInfoA/W |
| 134 | +- MsiSourceListEnumSourcesA/W |
| 135 | +- MsiSourceListEnumMediaDisksA/W |
| 136 | + |
| 137 | +### UI Functions |
| 138 | + |
| 139 | +These functions configure the Windows Installer UI subsystem, including setting the |
| 140 | +UI level, registering external UI handlers, and enabling logging. They are meaningless |
| 141 | +without the Windows Installer engine running an installation session. |
| 142 | + |
| 143 | +- MsiSetInternalUI |
| 144 | +- MsiSetExternalUIA/W |
| 145 | +- MsiSetExternalUIRecord |
| 146 | +- MsiEnableLogA/W |
| 147 | +- MsiEnableUIPreview |
| 148 | +- MsiPreviewDialogA/W |
| 149 | +- MsiPreviewBillboardA/W |
| 150 | + |
| 151 | +### Install Session Functions |
| 152 | + |
| 153 | +These functions operate on an active installation session (MSIHANDLE to an install session) |
| 154 | +managed by the Windows Installer engine. They are used by custom actions during installation |
| 155 | +to query and modify the installation state. libmsi does not create or manage install sessions. |
| 156 | + |
| 157 | +- MsiGetActiveDatabase |
| 158 | +- MsiSetPropertyA/W |
| 159 | +- MsiGetPropertyA/W |
| 160 | +- MsiGetLanguage |
| 161 | +- MsiGetMode |
| 162 | +- MsiSetMode |
| 163 | +- MsiDoActionA/W |
| 164 | +- MsiSequenceA/W |
| 165 | +- MsiProcessMessage |
| 166 | +- MsiEvaluateConditionA/W |
| 167 | +- MsiGetFeatureStateA/W |
| 168 | +- MsiSetFeatureStateA/W |
| 169 | +- MsiSetFeatureAttributesA/W |
| 170 | +- MsiGetComponentStateA/W |
| 171 | +- MsiSetComponentStateA/W |
| 172 | +- MsiGetFeatureCostA/W |
| 173 | +- MsiEnumComponentCostsA/W |
| 174 | +- MsiSetInstallLevel |
| 175 | +- MsiGetFeatureValidStatesA/W |
| 176 | +- MsiGetSourcePathA/W |
| 177 | +- MsiGetTargetPathA/W |
| 178 | +- MsiSetTargetPathA/W |
| 179 | +- MsiVerifyDiskSpace |
| 180 | + |
| 181 | +### Package/Product Opening |
| 182 | + |
| 183 | +These functions open an installed product or package through the Windows Installer Service, |
| 184 | +creating an installation session. Unlike MsiOpenDatabase (which opens the .msi file directly), |
| 185 | +these functions interact with the installer service to resolve product registration. |
| 186 | + |
| 187 | +- MsiOpenProductA/W |
| 188 | +- MsiOpenPackageA/W |
| 189 | +- MsiOpenPackageExA/W |
| 190 | + |
| 191 | +### Utility Functions |
| 192 | + |
| 193 | +These functions provide utility operations that depend on Windows-specific APIs |
| 194 | +(file version resources, cryptographic signature verification, shell shortcuts) |
| 195 | +rather than MSI database content. |
| 196 | + |
| 197 | +- MsiGetFileVersionA/W - requires Windows version resource APIs (GetFileVersionInfo) |
| 198 | +- MsiGetFileHashA/W - requires Windows file hashing APIs |
| 199 | +- MsiGetFileSignatureInformationA/W - requires Windows cryptographic certificate APIs (returns E_NOTIMPL) |
| 200 | +- MsiGetShortcutTargetA/W - requires Windows shell shortcut (IShellLink) APIs |
| 201 | +- MsiNotifySidChangeA/W - requires Windows Installer Service SID migration |
| 202 | + |
| 203 | +### Transform Generation |
| 204 | + |
| 205 | +These functions generate transform files (.mst) by comparing two databases, and create |
| 206 | +transform summary information. While libmsi can apply transforms, it does not expose |
| 207 | +the transform generation functionality. |
| 208 | + |
| 209 | +- MsiDatabaseGenerateTransformA/W |
| 210 | +- MsiCreateTransformSummaryInfoA/W |
| 211 | + |
| 212 | +### Transaction Management |
| 213 | + |
| 214 | +These functions manage multi-package installation transactions, a feature of the Windows |
| 215 | +Installer engine that allows atomic installation of multiple packages. |
| 216 | + |
| 217 | +- MsiBeginTransactionA/W |
| 218 | +- MsiEndTransaction |
| 219 | +- MsiJoinTransaction |
0 commit comments