View Full Version : Error 1603 whenever I call a Custom Action?

06-30-2005, 12:21 PM
Hi there,

I created a simple test program (Installscript MSI project), and all I'm trying to do it call an Installscript function with a CA. Right now, the function just has a MessageBox() call in it.

Whenever I run it, I get the ol' error 1603. Comment out the CA, and it goes away. Quite bizarre.

07-01-2005, 08:30 AM
Attaching the MSI output file, if someone could help me out, and here's the source for my custom action:

export prototype Test();

function Test()
MessageBox("In Test", INFORMATION);

The custom action is currently "After InstallServices", but I've moved it all over the place.


07-01-2005, 08:36 AM
Whoops - guess I should have read these comments placed in the script file for me:

// Note: In order to have your InstallScript function executed as a custom
// action by the Windows Installer, it must be prototyped as an
// entry-point function.

// The keyword export identifies MyFunction() as an entry-point function.
// The argument it accepts must be a handle to the Installer database.