# WinStd: Microsoft Installer API

Loading...
Searching...
No Matches
Microsoft Installer API

## Functions

template<class _Traits , class _Ax >
static UINT | MsiGetPropertyA (MSIHANDLE hInstall, LPCSTR szName, std::basic_string< char, _Traits, _Ax > &sValue)
| Gets the value for an installer property and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiGetPropertyW (MSIHANDLE hInstall, LPCWSTR szName, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
| Gets the value for an installer property and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiRecordGetStringA (MSIHANDLE hRecord, unsigned int iField, std::basic_string< char, _Traits, _Ax > &sValue)
| Returns the string value of a record field and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiRecordGetStringW (MSIHANDLE hRecord, unsigned int iField, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
| Returns the string value of a record field and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiFormatRecordA (MSIHANDLE hInstall, MSIHANDLE hRecord, std::basic_string< char, _Traits, _Ax > &sValue)
| Formats record field data and properties using a format string and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiFormatRecordW (MSIHANDLE hInstall, MSIHANDLE hRecord, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
| Formats record field data and properties using a format string and stores it in a std::wstring string.
template<class _Ty , class _Ax >
static UINT | MsiRecordReadStream (MSIHANDLE hRecord, unsigned int iField, std::vector< _Ty, _Ax > &binData)
| Reads bytes from a record stream field into a std::vector buffer.
template<class _Traits , class _Ax >
static UINT | MsiGetTargetPathA (MSIHANDLE hInstall, LPCSTR szFolder, std::basic_string< char, _Traits, _Ax > &sValue)
| Returns the full target path for a folder in the Directory table and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static UINT | MsiGetTargetPathW (MSIHANDLE hInstall, LPCWSTR szFolder, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
| Returns the full target path for a folder in the Directory table and stores it in a std::wstring string.
template<class _Traits , class _Ax >
static INSTALLSTATE | MsiGetComponentPathA (LPCSTR szProduct, LPCSTR szComponent, std::basic_string< char, _Traits, _Ax > &sValue)
| Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.
template<class _Traits , class _Ax >
static INSTALLSTATE | MsiGetComponentPathW (LPCWSTR szProduct, LPCWSTR szComponent, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
| Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.

## Detailed Description

## Function Documentation

## MsiFormatRecordA()

template<class _Traits , class _Ax >

static UINT MsiFormatRecordA | ( | MSIHANDLE | hInstall,
|  | MSIHANDLE | hRecord,
|  | std::basic_string< char, _Traits, _Ax > & | sValue )

static

Formats record field data and properties using a format string and stores it in a std::wstring string.

See also
  MsiFormatRecord function

## MsiFormatRecordW()

template<class _Traits , class _Ax >

static UINT MsiFormatRecordW | ( | MSIHANDLE | hInstall,
|  | MSIHANDLE | hRecord,
|  | std::basic_string< wchar_t, _Traits, _Ax > & | sValue )

static

Formats record field data and properties using a format string and stores it in a std::wstring string.

See also
  MsiFormatRecord function

## MsiGetComponentPathA()

template<class _Traits , class _Ax >

static INSTALLSTATE MsiGetComponentPathA | ( | LPCSTR | szProduct,
|  | LPCSTR | szComponent,
|  | std::basic_string< char, _Traits, _Ax > & | sValue )

static

Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.

See also
  MsiGetComponentPath function

## MsiGetComponentPathW()

template<class _Traits , class _Ax >

static INSTALLSTATE MsiGetComponentPathW | ( | LPCWSTR | szProduct,
|  | LPCWSTR | szComponent,
|  | std::basic_string< wchar_t, _Traits, _Ax > & | sValue )

static

Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.

See also
  MsiGetComponentPath function

## MsiGetPropertyA()

template<class _Traits , class _Ax >

static UINT MsiGetPropertyA | ( | MSIHANDLE | hInstall,
|  | LPCSTR | szName,
|  | std::basic_string< char, _Traits, _Ax > & | sValue )

static

Gets the value for an installer property and stores it in a std::wstring string.

See also
  MsiGetProperty function

## MsiGetPropertyW()

template<class _Traits , class _Ax >

static UINT MsiGetPropertyW | ( | MSIHANDLE | hInstall,
|  | LPCWSTR | szName,
|  | std::basic_string< wchar_t, _Traits, _Ax > & | sValue )

static

Gets the value for an installer property and stores it in a std::wstring string.

See also
  MsiGetProperty function

## MsiGetTargetPathA()

template<class _Traits , class _Ax >

static UINT MsiGetTargetPathA | ( | MSIHANDLE | hInstall,
|  | LPCSTR | szFolder,
|  | std::basic_string< char, _Traits, _Ax > & | sValue )

static

Returns the full target path for a folder in the Directory table and stores it in a std::wstring string.

See also
  MsiGetTargetPath function

## MsiGetTargetPathW()

template<class _Traits , class _Ax >

static UINT MsiGetTargetPathW | ( | MSIHANDLE | hInstall,
|  | LPCWSTR | szFolder,
|  | std::basic_string< wchar_t, _Traits, _Ax > & | sValue )

static

Returns the full target path for a folder in the Directory table and stores it in a std::wstring string.

See also
  MsiGetTargetPath function

## MsiRecordGetStringA()

template<class _Traits , class _Ax >

static UINT MsiRecordGetStringA | ( | MSIHANDLE | hRecord,
|  | unsigned int | iField,
|  | std::basic_string< char, _Traits, _Ax > & | sValue )

static

Returns the string value of a record field and stores it in a std::wstring string.

See also
  MsiRecordGetString function

## MsiRecordGetStringW()

template<class _Traits , class _Ax >

static UINT MsiRecordGetStringW | ( | MSIHANDLE | hRecord,
|  | unsigned int | iField,
|  | std::basic_string< wchar_t, _Traits, _Ax > & | sValue )

static

Returns the string value of a record field and stores it in a std::wstring string.

See also
  MsiRecordGetString function

## MsiRecordReadStream()

template<class _Ty , class _Ax >

static UINT MsiRecordReadStream | ( | MSIHANDLE | hRecord,
|  | unsigned int | iField,
|  | std::vector< _Ty, _Ax > & | binData )

static

Reads bytes from a record stream field into a std::vector buffer.

See also
  MsiRecordReadStream function