131. MSI for NXLog Agent Setup
This add-on provides an example for building an MSI package which can be used to bootstrap an NXLog agent on a Windows system. Normally this would be used to set up the agent for management by NXLog Manager—it installs a custom configuration and a CA certificate. The package can be installed alongside the NXLog MSI.
-
The Windows Installer XML Toolset (Wix) is required to build the custom MSI. Wix is free software available for download from wixtoolset.org.
-
Install Wix. Make a note where the binary folder of Wix is located (containing the
candle.exeandlight.exeexecutables, typicallyC:\Program Files (x86)\WiX Toolset v3.11\bin). -
Save the add-on files in a folder of your choosing and make sure the path to the binary folder is correct in the
pkgmsi32.bat(orpkgmsi64.bat) script by editing theWIX_BUILD_LOCATIONvariable. -
Add the custom
agent-ca.pemandlog4ensics.conffiles in the folder. -
The files to be deployed can be customized by editing
nxlog-conf.wxs. -
Finally, execute either the
pkgmsi32.bator thepkgmsi64.batscript, depending on the targeted architecture. While both the resulting MSIs include platform independent files, we strongly advise to build and install the appropriate custom configuration MSI that matches the NXLog installation. -
The script will proceed to build the MSI. Depending on the architecture selected, the result will be either
nxlog-conf_x86.msiornxlog-conf_x64.msi. -
The custom configuration MSI can now be deployed alongside the NXLog installer, using one the same methods (interactively, with Msiexec, or via Group Policy).