We are using some VBscripts that work as intended (for a long time). Now we're starting to see that these scripts do not work for some clients. The error msg is "EA Generic error: ActiveX component can´t create object: ‘MSXML2.DOMDocument.4.0’
What these clients (with script failing) have in common is that they are of a newer model and thus newly installed.
Trying to narrow the problem I have tested with the example JScript 'Example Template Fragment Script' (
https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_publishing/example_rtf_template_fragment_.html)
On an older client, the script works, but on a new client the error msg is "Script error: ‘Automation server can't create object’ ”
If I change the line
var xmlDOM = new ActiveXObject("MSXML2.DOMDocument.4.0");
to
var xmlDOM = new ActiveXObject("MSXML2.DOMDocument.6.0");
it seems to work both on an older as well as a newer client.
I compared the msxml.dll's in \Windows\System32, and both "client types" have
msxml3.dll
msxml6.dll
with identical date stamp (2020-10-23) and version number.
So, what am I dealing with here?
Should I let the Infrastructure Dep. look for differences between the clients' setup, or should I let the scripts in EA change?