UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Custom action output in logfile ?

Is it possible to capture the stdout of a custom action into the installer log ? I'm having some problems but I can't tell exactly what's going on because I don't see the output of my program (which is basically a console mode compiled perl script).
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this is not supported directly by Advanced Installer.

However, in a DLL or script custom action you can write custom code which creates entries in the installation log. Here is some sample code for a DLL which you can use:

Code: Select all

PMSIHANDLE newHandle = ::MsiCreateRecord(2);
MsiRecordSetString(newHandle, 0, bufferLog);
MsiProcessMessage(aMsiHandle, INSTALLMESSAGE(INSTALLMESSAGE_INFO), newHandle);
Note that for an EXE custom action Advanced Installer allows you to use the "aicustact.dll" custom action in "custact" subfolder of the AI installation folder. Let me know if you need more details about this.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”