http://www.perlmonks.org?node_id=1205085

malus_bird has asked for the wisdom of the Perl Monks concerning the following question:

Hi out there!

I'm a per novice and just a user of the windows version of exiftool, that comes as a executable PAR package.

When executed the first time it unpacks into a par folder in my temp folder and then executes another exiftool.exe that's unpacked into this folder. The temp folder is of course writeable by the login in user.

But I'm on a computer with Microsofts "Software restriction policies" that does not allow to execute programs from writeable folders.

I tried moving the par folder to write a protected folder and set a var. This was the result:

>set PAR_GLOBAL_TEMP="C:\Program Files (x86)\Tools\par" >exiftool exiftool: creation of private cache subdirectory "C:\Program Files (x8 +6)\Tools\par" failed (errno= 22)
It seems exiftool still needs write access to this folder although all needed files already exist.

Any ideas how to solve this?

Thanx for reading,

Replies are listed 'Best First'.
Re: Executabel PAR package and write protected folders
by Anonymous Monk on Dec 07, 2017 at 13:37 UTC
    msdn software restriction policies says

    Software restriction policies use rules to identify one or more software applications, and to specify whether the software is permitted to run. By creating rules, administrators can identify software that is an exception to the default rule.

    go ahead and create exception for exiftool