DTF does not call the second action if the custom action assembly has more than one action. It always calls only the first action. As a workaround, I am using one action in one assembly. It works perfectly always.
Do you have any idea on this issue?
public class CustomActions
{
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
[some code]
}
[CustomAction]
public static ActionResult CustomAction2(Session session)
{
[some code]
}
}
I've never seen this problem as I group custom actions together in a single assembly all the time. Each method will be exported as type 1 entry points and then you write a custom action for each exported function. Windows Installer calls the CA which calls the function which fires up the CLR and invokes the static method that the custom action points to.