Community Forums
Results 1 to 3 of 3

Thread: Calling a function from a Custom Action

  1. #1
    Join Date
    Jan 2002
    Location
    Burlington, Ontario, Canada
    Posts
    370

    Calling a function from a Custom Action

    I've written a function that I call from a custom action. Can someone tell me what is wrong. I always get the following error when it is called: "Error 1723: There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run."

    Here is my function:
    UINT __stdcall TestFunction( MSIHANDLE hInstall )
    {
    MessageBox( GetForegroundWindow(), "Beginning of function", "", MB_OK );

    return ERROR_SUCCESS;
    }

    I've done a dumpbin on the DLL and the function has been exported.



    Anthony

  2. #2
    Join Date
    Feb 2002
    Location
    NY
    Posts
    95
    When you set up your custom action, what choices did you make? For example, are you exporting from a standard windows library or windows installer library(dll). I am assuming that you are getting the function from a dll that is stored in the binary table, because depending on where you sequenced your action, the file is not on the target machine (is you chose "Installed with Product".

    Answers to these questions, will give a better idea on the issue.

  3. #3
    Join Date
    Jan 2002
    Location
    Burlington, Ontario, Canada
    Posts
    370
    Turned out to be the dll that I was working with. I was trying to modify an existing one, and it contains methods that work under WinNT, but I'm testing on WinXP. I greated and

    Thanks for the help though.



    Anthony

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •