22#include <systools/win32/uwinapi.h>
30 va_start(
args, pFormat );
31 StringCchVPrintfW( buffer, std::size(buffer), pFormat,
args );
32 OutputDebugStringW( buffer );
41extern "C" __declspec(dllexport) UINT __stdcall CheckPatchList( MSIHANDLE handle )
44 std::wstring sRequiredPatch =
GetMsiPropertyW( handle, L
"PREREQUIREDPATCH" );
46 OutputDebugStringFormatW( L
"CheckPatchList called with PATCH=%s and PRQ=%s\n", sPatchList.c_str(), sRequiredPatch.c_str() );
48 if ( ( sPatchList.length() != 0 ) && ( sRequiredPatch.length() != 0 ) )
50 if ( wcsstr( sPatchList.c_str(), sRequiredPatch.c_str() ) )
__declspec(dllexport) UINT __stdcall CheckPatchList(MSIHANDLE handle)
void OutputDebugStringFormatW(PCWSTR pFormat,...)
static std::wstring GetMsiPropertyW(MSIHANDLE handle, const std::wstring &sProperty)
static void SetMsiPropertyW(MSIHANDLE handle, const std::wstring &sProperty, const std::wstring &sValue)