I have added the custom action in Merge Module Project in InstallShiled.
PFA: Screenshot for more info.
I have set the property in Property Manager in Merge Module Project.
Key = "CustomActionData", Value = "[INSTALLDIR]"
I have shared sample MSI DLL Source code.
I have built merge module and added in Basic MSI Project.
I have added Custom Action from Merge Module file.
I have built basic MSI project and InstallShield generated setup.exe.
When I run setup.exe then The install function called in Custom Action MSI DLL. But It gets to failed custom Action Data.
PFA: Screenshot for more info.
same issue working on Visual Studio 2010 installer but install shield has failed to get install path during installation using
UINT gp = ::MsiGetProperty( hInstall,
_T("CustomActionData"),
customData,
&len);