Hi and welcome to our forums,
which means AI COM object in the script uses AI in version 18.5, not 16.6.1. Is there a way to tell the script which version of AI to use?
AI COM uses the latest version installed on the system.
You need to register the AI version you want to use for COM, to do that, please follow these steps:
- Open an elevated Command Prompt.
- Use the following command:
Code: Select all
"C:\Program Files (x86)\Caphyon\Advanced Installer 16.6.1\bin\x86\advinst.exe" /REGSERVER
Use upper-case letters for "/REGSERVER".
If you want to use another AI version, just use the above command. Go to the version you want to use and you can find the advinst.exe in "\bin\x86\".
- Restart the PowerShell session and now you can build with the 16.6.1 version inside your script.
Hope this helps! If you have any other questions, please don't hesitate to contact us.
Best regards,
Liviu