Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
It's possible that the recent Windows update or the changes made by the Web Browsing Optimizer have affected the way MSHTA handles file paths, causing the script error you are experiencing. Here are a few things you could try:
Try running the program as an administrator to see if that resolves the issue.
Check that the JavaScript file is located in the correct directory and that the file path in your code is correct.
Try using a different browser, like Internet Explorer or Edge, to open the program and see if the issue persists.
Check if any security software or firewalls might be blocking access to the JavaScript file.
Try using a different method to load the JavaScript file, such as using the <script> tag or the jQuery.getScript() method.
Check if any group policies or local security policies are blocking MSHTA or access to the file.
If none of the above works, you could consider migrating your application to a more modern platform or framework that is actively supported and maintained.
I hope this helps!
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.