We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

New User

Custom Action Dll

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

Return to “Common Problems”