MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Directory Tree Specification[Next]: DllCa-C
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->DllCa

The "DllCa" Command

This command is used to define and schedule a pre-existing DLL based custom action. It also sets up the "Action Text" which gets displayed in the progress bar.

Note that you can use the "DllCa-C" command to create the source for a C/C++ based DLL, compile, link and add to the MSI if you wish.

This command takes these parameters:

EXAMPLE - INSTALLED FILE

The DLL used in this example can be obtained from "http://www.codeproject.com/KB/install/msicustomaction.aspx".

This example executes a DLL installed by this package:

;--- Add the file to the "File" Table ---
<$File RowKey="DllAsInstalledFile" SOURCE="D:\DBAREIS\Projects\Win32\MAKEMSI_SAMPLE_DLL\CodeProject Sample.dll" Destination="[INSTALLDIR]\TestDll.DLL">

;--- Now call "SampleFunction()" --------
<$DllCa File="DllAsInstalledFile" Seq="InstallFiles-" Entry="SampleFunction" Condition="<$DLLCA_CONDITION_INSTALL_ONLY>">

Obviously the custom action must be sequenced after the file is installed and before it is removed otherwise the DLL (or a copy) should be put into the binary table instead (see below).

EXAMPLE - BINARY TABLE

The DLL used in this example can be obtained from "http://www.codeproject.com/KB/install/msicustomaction.aspx".

;--- Run 2 different DLL Entry Points ---
<$DllCa Binary="DllInBinaryTable" SEQ="DeleteServices-" Entry="SampleFunction"  Condition="<$DLLCA_CONDITION_INSTALL_ONLY>" DLL=^..\MAKEMSI_SAMPLE_DLL\CodeProject Sample.dll^>
<$DllCa Binary="DllInBinaryTable" SEQ="DeleteServices-" Entry="SampleFunction3" Condition="<$DLLCA_CONDITION_INSTALL_ONLY>">


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Directory Tree Specification[Next]: DllCa-C


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday February 28 2016 at 3:45pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.