Determine if the Custom Action Function is Exported

Determine if the Custom Action Function is Exported

  • Comments 2

Another reason a custom action may not run is because the custom action function isn't exported. This may not be common in most patch build systems, but could arise during authoring or if a binary wasn't updated in the Binary table. You should expect to find a log line similar to the following.

MSI (s) (1C:C4) [16:57:23:258]: Doing action: CA_QuietExec_Post_InstallFiles
Action start 16:57:23: CA_QuietExec_Post_InstallFiles.
MSI (s) (1C:10) [16:57:23:274]: Invoking remote custom action. DLL: C:\WINNT\Installer\MSI140.tmp, Entrypoint: QuietExec_Post_InstallFiles
MSI (s) (1C:C4) [16:57:23:274]: Note: 1: 1723 2: CA_QuietExec_Post_InstallFiles 3: QuietExec_Post_InstallFiles 4: C:\WINNT\Installer\MSI140.tmp
MSI (c) (58:94) [16:57:23:289]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1723.There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action CA_QuietExec_Post_InstallFiles, entry: QuietExec_Post_InstallFiles, library: C:\WINNT\Installer\MSI140.tmp

To perform a quick sanity check on the DLL, find the custom action name in the CustomAction table using Orca and look at the Source column for that custom action. For type 1 custom actions the Source column value is the key into the Binary table for the DLL. Don't forget that the Type column might also include flags for scheduling, return, and in-script options.

Now find that ID in the Binary table using Orca and double click the Data column. Select "Write binary to filename", type or browse for a filename, and click OK.

Load that file in depends.exe or run dumpbin.exe /exports on it to see if the custom action function is truly exported.

Error message 1723 is the Windows Installer error message that is displayed to the user and/or written to the log, but ultimately Windows Installer will return ERROR_INSTALL_FAILURE (1603).

Leave a Comment
  • Please add 8 and 4 and type the answer here:
  • Post
  • Have you ever considered writing a book on the Windows installer?
  • Nick, I'm actually working on something along those lines right now but it's still pretty early so I can't really say much yet.
Page 1 of 1 (2 items)