window agent - wazuh-installer-build-msi.bat

143 views
Skip to first unread message

황주영

unread,
Feb 24, 2021, 6:59:14 PM2/24/21
to Wazuh mailing list
Hello,
When creating the Windows Agent msi installation file, the following error occurs.
Does anyone know about this error?

light.exe "wazuh-installer.wixobj" -out "wazuh-agent--.msi"  -ext WixUtilExtension -ext WixUiExtension
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

light.exe : error LGHT0001 : The specified file could not be found. (Exception occurred HRESULT: 0x80070002)

Exception Type: System.IO.FileNotFoundExceptionStack Trace:
   location: Microsoft.Tools.WindowsInstallerXml.Cab.Interop.NativeMethods.CreateCabFinish(IntPtr contextHandle, IntPtr newCabNamesCallBackAddress)
   location: Microsoft.Tools.WindowsInstallerXml.Cab.WixCreateCab.Complete(IntPtr newCabNamesCallBackAddress)
   location: Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.CreateCabinet(CabinetWorkItem cabinetWorkItem)
   location: Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.ProcessWorkItems()

Daniel Folch

unread,
Feb 25, 2021, 8:43:49 AM2/25/21
to Wazuh mailing list
Hello,

I was not able to reproduce this error, have you modified the wxs template file or created new files for the package? From what the message is saying it seems that some file is missing.

Remember that you can use the tools in the wazuh-packages repository to simplify the generation of the MSI, for more information about how to use these tools check this page of our documentation:
https://documentation.wazuh.com/current/development/packaging/generate-windows-package.html

Also if possible could you explain your use case and why you need a custom MSI?
Reply all
Reply to author
Forward
0 new messages