When trying to install the OfficeScan Agent, you get this error:
Unable to install the OfficeScan Agent. There was an error copying VSAPI32.DLL. Please contact your OfficeScan Agent administrator for assistance.
This is an unhelpful error message because the problem isn’t actually an error copying VSAPI32.DLL, it’s an error copying the OTHER installation files for OfficeScan.
To fix this error, find all the files that have been renamed to xxx_invalid in the PCCSRV (C:\Program Files (x86)\Trend Micro\OfficeScan\PCCSRV) directory on the OfficeScan server to remove the _invalid part of the filename.
To help you fix the error copying VSAPI32.DLL, here’s a PowerShell script (sourced from Trend Micro themselves):
❗ Note: You have to run the PowerShell cmdlet as Administrator.
❗ Note: Don’t forget to change the directory in the first line to the location of your PCCSRV directory on the OfficeScan server hosting the installation files.