cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dvsour
Level 2

CustomActionData is null return

Setup Of Visual Studio 2019

I run this Query form CMD:- msiexec.exe /i C:\Users\test_agent\Desktop\Attackfence_Agent.msi /qn Type=Install

 

Code :-


r = MsiOpenProductA("{07EB86B2-B6D0-486E-A8A9-B162AE17DA58}", &hInstall);
UINT uiStat = MsiGetPropertyW(hInstall, L"CustomActionData", TEXT(""), &vlen);

if (ERROR_MORE_DATA == uiStat)
{
fprintf(fp, "%s", "dddddd");
++vlen; // add 1 for null termination


uiStat = MsiGetPropertyW(hInstall, L"CustomActionData", vbuff, &vlen);
WCHAR msg[500] = { 0 };
wsprintfW(msg, L"gp = %d vlen = %d vbuff = %s", uiStat, vlen, vbuff);
LogMessage(hInstall, msg);
MessageBoxW(NULL, msg, L"Result", MB_OK| MB_ICONINFORMATION);
//MessageBoxW(NULL, vbuff, L"SUPPORTDIR is ...", MB_OK);


}
if (ERROR_SUCCESS != uiStat)
{
if (szValueBuf != NULL)
delete[] szValueBuf;
fprintf(fp, "%s", "Failed");
}

@please help 

0 Kudos
(0) Replies