When trying to create client package, you encounter the "The agent package cannot be created. Please make sure to specify the correct output file or source file." error even when the server has no _invalid files and the output file is correct.
To troubleshoot the issue:
- Enable the debug log for ClientPackager by following the steps in this KB article: Troubleshooting guide for client/agent installation issues in OfficeScan (OSCE).
From the collected logs, it shows that copying x64_libprotobuf.dll fails because libprotobuf.dll is not present in the server’s path PCCSRV\pccnt\Win64\X64\. The error from logs shows:
04/25 18:24:18 [20b0-0410] [CollectSourceFiles] Copy file [E:\Program Files (x86)\Trend
Micro\OfficeScan\PCCSRV\pccnt\Win64\X64\libprotobuf.dll] to [E:\Program Files
(x86)\Trend Micro\OfficeScan\PCCSRV\TEMP\ClnPack\x64_libprotobuf.dll] failed  -
04/25 18:24:18 [20b0-0410] [Run] CollectSourceFiles failed [-20406]. -
04/25 18:24:18 [20b0-0410] [PackMSI] Run: [-20406]. -
- Go to \PCCSRV\TEMP\ClnPack and delete the contents.
- Go to \PCCSRV\pccnt\Win64\X64\ and verify if the libprotobuf.dll does exist.
If the file does not exist, copy the libprotobuf.dll from a working OSCE server with the same build version.
- Restart the Officescan Master Service.
You should now be able to create a client package without issue.