Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

return value from dll custom action


1 reply to this topic

lavocat

lavocat
  • Full Members
  • 158 posts

Posted 22 June 2012 - 11:23

Hi,

I have a function XY in a c++ DLL, called from "NewCustomAction1" CA.
This function returns ERROR_INSTALL_FAILURE but the installer doesn't check it and continue without displaying any error message.

This is the CustomActionTable:
NewCustomAction1 1 DLLWRAP.DLL DLL1
As you can see the type is "1"

This is the log file:

MSI © (68:44) [12:18:18:655]: Doing action: NewCustomAction1
Action 12:18:18: NewCustomAction1.
Action start 12:18:18: NewCustomAction1.
MSI © (68:44) [12:18:18:655]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'NewCustomAction1'
MSI © (68:20) [12:18:18:655]: Invoking remote custom action. DLL: C:\DOCUME~1\toto\LOCALS~1\Temp\MSIE95.tmp, Entrypoint: DLL1
Action ended 12:18:20: NewCustomAction1. Return value 1.


Thank you

lavocat

lavocat
  • Full Members
  • 158 posts

Posted 22 June 2012 - 13:28

error code is check for "MSI DLL" only, not for "Standard DLL" which is my case

Edited by lavocat, 22 June 2012 - 13:29.