I have a customActions class:
public static ActionResult Register(Session session)
{
try
{
Do SOmething
}
catch (Exception ex)
when (ExceptionManager.catchGenericExcetion(ex))
{
var responseMessage =ex.ResponseMessage;
if (responseMessage.Contains("Maximum apps created"))
{
session.Log("maximum limit reached");
using Record record = new Record(0);
record[0] = "This is an error!Max apps reached";
session.Message(InstallMessage.Error, record);
}
return ActionResult.Failure;
}
return ActionResult.Success;
}
}
Here my UI doesn't show any popup corresponding to session.Message(InstallMessage.Error, record); However, in the MSI logs, I can see the message printed: maximum limit reached
MSI (s) (30!F4) [21:26:05:047]: Product: MyApp -- This is an error!Max apps reached
Can anyone help that why I am unable to see this message on UI ? I want it to be displayed on the UI for the end user during the installation process.