DEBUG: Error 2769: Custom Action install did not close 1 MSIHANDLEs.

You may have seen this strange error when trying to install your MSI when you have developed a managed custom action DLL in Visual Studio 2005 / 2008?

If you execute the MSI with detailed logging, like this:
MSIEXEC /i "<YOURMSI>.msi" /L*v "InstallLog.txt"

You end up with an error message that is similar to this in the log file:
DEBUG: Error 2769:  Custom Action _E3EBB591_EA21_438E_AEB9_4442A5A8C483.install did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _E3EBB591_EA21_438E_AEB9_4442A5A8C483.install, 1,
Action ended 16:09:12: InstallExecute. Return value 3.

The thing is that you probably have set the Custom Action Data as follows:
/myParameter=”[TARGETDIR]”
The solution to the problem is to add a trailing backslash:
/myParameter=”[TARGETDIR]\

This is actually described in this MSDN article:
http://msdn.microsoft.com/en-us/library/2w2fhwzz.aspx

2 thoughts on “DEBUG: Error 2769: Custom Action install did not close 1 MSIHANDLEs.

  1. Even that is not working for me 🙁 🙁 But the log file says that,
    Custom Action _1B936110_C5C9_40B9_82F6_D01C8A065535.install did not close 1 MSIHANDLEs.
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _1B936110_C5C9_40B9_82F6_D01C8A065535.install, 1,
    CustomAction _1B936110_C5C9_40B9_82F6_D01C8A065535.install returned actual error code 1603

Leave a Reply

Your email address will not be published. Required fields are marked *