View Full Version : Custom Action Dll

06-28-2006, 12:24 PM
I've been trying, with little success, to use a dll to perform custom actions. This is my first try, and I think I have the dll set up right, but the MSI just immediately exits. The log shows a return code of 3 although my function does nothing more than return ERROR_SUCCESS(0). I'm not really sure how to debug from here.

I've downloaded the sample from here:

And it seemed to work fine in my setup, so I think I have it done correctly from that side. My guess is it has something to do with how I'm building the dll, but I'm not very familiar with dll building. I used Visual Studio 2005, and accepted most of the defaults.

I've included the Visual Studio project, and setup log.


Edit: Oops, uploaded wrong setup log. Fixed now I think

06-28-2006, 01:16 PM
Odd... I went and remade the same project more or less on my machine with VS 2003, and it worked no problem. Must be a build setting that I'm unaware of :(.


06-29-2006, 09:11 AM
This is a remote possibility, but are you by any chance using a "Standard DLL" not an "MSI DLL" custom action?

06-29-2006, 09:12 AM
For what it's worth, here's an ancient newsletter tip on the matter: http://www.installshield.com/news/newsletter/0108-articles/dlls-for-ipwi.asp.