Comments

I am sure it has something to do MsiGetProperty(hInstall, TEXT("targ"), TEXT(""), &cchValueBuf);

When i call "MsiGetProperty(hInstall, TEXT("targ"), TEXT(""), &cchValueBuf);" i get a return value of "ERROR_MORE_DATA"

So i called MsiGetProperty(hInstall, TEXT("targ"), szValueBuf, &cchValueBuf); But this time i set the size of the szValueBuf buffer to the returned value in cchValueBuf. But this value is a 0. The function did return ERROR_SUCCESS this time though.

Does that mean its not finding the "Custom Action Data" i set in the "Custom Action Editor", the value i set is:/targ=[TARGETDIR]

I am using C++ Visual Studio 2010

Also a point worth noting i set "InstallerClass=False" because the application would not compile. Would this effect the Custom Action Data being send/received

Has anyone else managed to achieve a CustomActionData with C++ and the VS Installer.