When a vendor MSI installation fails on deployment, many a times it may be because of the Custom action present in it. Here are some steps to take if you suspect your failure is related to such an action.
Generate the MSI log and search for RETURN VALUE 3. This will identify the problem in some cases.
Further, the possible Return Values for CAs are:
0 Action not invoked; most likely does not exist.
1 Completed actions successfully.
2 User terminated prematurely.
3 Unrecoverable error occurred.
4 Sequence suspended, to be resumed later.
If there is a problem still with advertising a package then check the property ProductState in the log file.
The ProductState property can be any of these values:
-1 The product is neither advertised or installed
1 The product is advertised but not installed
2 The product is installed for a different user
5 The product is installed for the current user.