CyBlock — Why Won’t the Directory Agent Install?
Applies to: CyBlock Directory Agent (installer fails with “iawin32.dll not found” or a Fatal Application Error)
When you run the Directory Agent Installer on some newer versions of Windows, the installation may fail with an error. The installer framework doesn’t recognize the Windows version it’s running on, so it can’t complete the install. The fix is to tell the installer it’s running on a Windows version it does recognize, then run it from the same Command Prompt window.
What you’ll see
You’ll get one of these two errors:
- iawin32.dll not found
- A Fatal Application Error pop-up that says: “This Application has Unexpectedly Quit. Invocation of this Java Application has caused an InvocationTargetException. This application will now exit.”
Both errors have the same cause and the same fix.
The fix
The fix: Set a temporary Java override that reports the operating system as Windows Server 2016, then run the installer from that window.
- Open Command Prompt as an administrator: right-click Command Prompt and choose Run as administrator. Use Command Prompt, not PowerShell, because the
setcommand below doesn’t work the same way in PowerShell. - Enter the following command:
set JAVA_TOOL_OPTIONS="-Dos.name=Windows Server 2016"
- Change to the folder where you downloaded the installer. For example:
cd /d "C:\Users\<username>\Downloads\cbda"
- Start the installer:
.\cbsa.exe
- Complete the installation as usual.
The override only applies inside that Command Prompt window. Nothing changes on the server, and the setting goes away when you close the window.
If the installer still fails, contact Wavecrest Technical Support. Include your Windows version and a screenshot of the error.
Quick summary
- “iawin32.dll not found” or “InvocationTargetException” → Run the installer from an admin Command Prompt with
JAVA_TOOL_OPTIONSset as shown above. - You used PowerShell and the error is still there → Use Command Prompt (cmd.exe) instead.
- It still fails in Command Prompt → Contact Wavecrest Technical Support.