I have created merge module project in InstallShield 2014.
I have added Custom Action in using CustomActions.dll.
This CustomAction dll has Install Function.
Example: customactions.dll
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
UINT __stdcall Install ( MSIHANDLE hModule )
{
MessageBox(NULL, "Hello world", "CustomAction", MB_OK);
return ERROR_SUCCESS;
}
UINT __stdcall SampleFunction2 ( MSIHANDLE hModule )
{
MessageBox(NULL, "Hello world", "CustomAction", MB_OK);
return ERROR_SUCCESS;
}
After that,
I have built merge module project.
I have added merge module in Basic MSI Project.
I have built basic project.
I have installed using newly built installer.
I am unable to found message-box of custom action. it means custom action is not executed.
PFA: Screenshot for more info.
After that, I built Basic MSI Project. Custom Action function(Install Function) hit when I execute setup.exe.