bool MSOfficeLPIAction::_extractCabFile(wchar_t * file, wchar_t * path) { Runner runnerCab; wchar_t szParams[MAX_PATH]; wchar_t szApp[MAX_PATH]; GetSystemDirectory(szApp, MAX_PATH); wcscat_s(szApp, L"\\expand.exe "); swprintf_s (szParams, L" %s %s -f:*", file, path); g_log.Log(L"MSOfficeLPIAction::_extractCabFile '%s' with params '%s'", szApp, szParams); runnerCab.Execute(szApp, szParams); runnerCab.WaitUntilFinished(); return true; }