Access Denied error when executing post install custpom script

Access Denied error when executing post install custpom script

I modified installer (CorettoJRE, auto downloaded by EC, .msi), with:
1. Pre installation tasks:
1.1 - stop process java.exe
1.2 - stop process javaw.exe
1.3 - copy ca certs to temp dir
2. Installation task (not touched..)
3. Post installation task:
3.1 - execute custom script (import ca certs using keytool.exe)

Post installation script execution allways fail with error: Access Denied.
When I change script to simple  echo "hello word" it also fail with the same error.

But when I create a separate configuration for this ("Hello world") script, it works fine.

How to deal with it?


                  New to ADSelfService Plus?