MSIHANDLE argument to custom dll functions
Posted: Wed Jan 16, 2013 12:10 pm
Background
I'm trying out the 30 day evaluation of IA 15. Currently we use MakeMSI to build MSIs. Considering moving to WiX or IA.
Problem
I already have a working dll containing a function with this prototype:As msiexec installs my msi, my dll gets loaded, the dll entry point gets called and the function implementation passes the hInstall argument to MsiRecordSetString so the dll can write its progress and error messages to the logfile generated via the msiexec /l*v switch.
I'd prefer not to have to modify my dll source code. How can I get IA to give me an MSIHANDLE argument when it calls my function?
Or if it can't give me an MSIHANDLE, how can I get my log messages to appear in the log file?
I'm trying out the 30 day evaluation of IA 15. Currently we use MakeMSI to build MSIs. Considering moving to WiX or IA.
Problem
I already have a working dll containing a function with this prototype:
Code: Select all
UINT __stdcall InstallPrinterDriver (MSIHANDLE hInstall)I'd prefer not to have to modify my dll source code. How can I get IA to give me an MSIHANDLE argument when it calls my function?
Or if it can't give me an MSIHANDLE, how can I get my log messages to appear in the log file?