I had a requirement to create a zip file in my Illustrator script for which I write a vbs script to file and execute it using the execute() method, this has been working fine so far but now on WIN11 the vbs does not work. This happens both for CC2022 and CC2021. On looking in the event log i see the following error
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
to the user DESKTOP-8NV6RBL\manan SID (S-1-5-21-1432497791-1835572230-1186130413-1001) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool."
Looking up this error I find MS says it should not cause any issue(see here) but trying to fix the permissions(see here) I was able to get the script working. So this seems to be a permission issue that needs to be adressed at the Adobe end. Can someone verify this issue happening on their WIN11 machines as well. If it is then we could raise a bug request, my script is rendered useless due to this blocker.
P.S.:- I tried executing the vbs using ExtendScript as the engine and it worked so definitely something to do with Illustrator installation in my opinion.
Hi Manan, I run a vbs script from ESTK targetting Illustrator CC2022 vis execute() and it worked fine.
Do you want me to test any particular scenario?
Hi Manan, yes I'm on Win 11...I'm not linking the looks of it by the way 🙂
I had checked on three WIN11 machine and all failed to work for me. Can you try and execute the following vbs that I use. It just creates a zip file and moves it to a new location. You can change the arguments as needed, the first argument is the folder that needs to be zipped and the second is the final path of the zip to be created.
Also could you please confirm the Illustrator and Win11 build that you are using.
P.S.:- At the risk of creating a controversy or getting a huge backlash, I never liked Win once I started using MAC's and that's more than a decade now. But, with MAC's not getting prohibitevely expensive I may have to switch, still holding on to my 2014 MAC 🙂
Hi Manan, your script works like a charm on my system.
I run it
- by double-clicking on it,
- from a jsx execute() in the estk
- from a jsx execute() from illustrator file menu
I just installed Win 11 about a three weeks ago after ignoring the "upgrade" notice for a while. I didn't do anything special after that. Adobe apps run fine, Office apps run fine. I didn't have to run as administrator or didn't have to adjust any settings. Win 11 just worked out of the box.
The only complain I have is that Excel can not connect to illustrator via COM, but that has happened before with previous Illustrator versions under Win 10 so, not exactly a Win 11 problem.
Illustrator CC v26.0
Edition Windows 11 Home
Installed on 12/18/2021
OS build 22000.376
Serial number xxxxxxxxxx
Experience Windows Feature Experience Pack 1000.22000.376.0
So finally I was able to test this with a fresh install of Win11 and as you said it does work. So the issue seems to be with an upgraded Win11 machine. If someone has any insights on how to fix this without any registry, permission, owernship edit wizadry then please show me the elusive path. For now I am thinking of using an invisible CEP extension to do the zipping for me, hopefully that would work atleast.