Hi
I tried to retrieve the target path using the MsiGetTargetPath function. The code I used to retrieve the target path is as follows
if(MsiGetTargetPath(hInstall, _T("TARGETDIR"), szBuf,&cch)==ERROR_SUCCESS)
{
MessageBox(NULL,szBuf,MB_OK,0);
}
else
{
MessageBox(NULL,"Error occurred",MB_OK,0);
}
Messagebox returns a blank. i.e szBuf is empty.
Thanks