4
responses

Help with Custom MSI

- I want to replace the nxlog.conf with our own
- Start service nxlog as part of the installation

AskedJune 2, 2020 - 1:48am

Answer (1)

NXLog EE has an MSI packager for configurations that uses the WIX toolset.
https://nxlog.co/documentation/nxlog-user-guide/addon-msi-conf-cert.html

This should point you in the right direction.

Comments (3)

  • 13.nayan.patel's picture

    could not understand from

    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 (or pkgmsi64.bat) script by editing the WIX_BUILD_LOCATION variable.

    Add the custom agent-ca.pem and log4ensics.conf files in the folder.

    The files to be deployed can be customized by editing nxlog-conf.wxs.

    Finally, execute either the pkgmsi32.bat or the pkgmsi64.bat script, 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.msi or nxlog-conf_x64.msi.

  • Zhengshi's picture
    (NXLog)

    The quick and dirty is

    1. Download the WIX toolset at https://github.com/wixtoolset/wix3/releases/tag/wix3112rtm
    2. Download the NXLog provided files from https://gitlab.com/nxlog-public/contrib/tree/master/msi-conf-cert
    3. Edit log4ensics.conf file to add the required configs.
    4. Add Manager certificate as agent-ca.pem if you will be running NXLog Manager (optional)
    5. Run pkgmsi64.bat and use the resulting nxlog-conf_x64.msi file on your Windows servers to install the config and restart the service.