Author Topic: Microsoft "Software restriction policies"  (Read 3059 times)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14425
    • ExifTool Home Page
Re: Microsoft "Software restriction policies"
« Reply #15 on: February 16, 2019, 07:16:34 AM »
Is ExifTool 11.27 good for you?  Just set PAR_GLOBAL_TEMP to SOME_DIR/par, then the .txt file will be written to SOME_DIR.

- Phil

Edit: Thinking about this more, it isn't a good solution because the .txt file is recreated each time is is requested, which could result in conflicts between different users running at the same time.  I think it was better the way it had been previously.  PAR_GLOBAL_TEMP was used for the executable part, and TEMP was used for the documentation.  Or, if as you suggested I created the documentation file once and never delete it, then I would need to add a version number to the file name so it wouldn't get stale when you updated ExifTool.  In this case it could go in PAR_GLOBAL_TEMP without a conflict.  I think I'll try this strategy in 11.28.
« Last Edit: February 16, 2019, 02:07:00 PM by Phil Harvey »
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

bmn

  • Full Member
  • ***
  • Posts: 32
Re: Microsoft "Software restriction policies"
« Reply #16 on: February 22, 2019, 07:47:01 AM »
Hi,

thank you for your work and for the info. I'll wait with testing until the next version :)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14425
    • ExifTool Home Page
Re: Microsoft "Software restriction policies"
« Reply #17 on: February 22, 2019, 08:24:55 AM »
The next version (11.28) was available yesterday.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

bmn

  • Full Member
  • ***
  • Posts: 32
Re: Microsoft "Software restriction policies"
« Reply #18 on: February 23, 2019, 05:59:21 AM »
Hi Phil,

that seems to work really great. I'll test a bit more next week and afterwards start deploying if no problems occur.

Thank you for making the changes.

obetz

  • Full Member
  • ***
  • Posts: 46
Re: Microsoft "Software restriction policies"
« Reply #19 on: April 03, 2019, 07:27:41 AM »
Current ExifTool writes the temporary file to one level higher than PAR_TEMP by default.  You should be able to set PAR_TEMP to change this.  If PAR_TEMP is not defined, then the file is created in TMP or TEMP, whichever environment variable is defined.  I could maybe change this to use PAR_GLOBAL_TEMP if it is defined.  The way it would be is that the .txt file would go to C:\Temp if PAR_GLOBAL_TEMP was set to C:\Temp\par.  Would this be OK?

this sound dangerous since "bmn" sets PAR_GLOBAL_TEMP to a directory not writable by restricted users.

TEMP and TMP is the right place IMO.

Oliver

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14425
    • ExifTool Home Page
Re: Microsoft "Software restriction policies"
« Reply #20 on: April 03, 2019, 07:37:08 AM »
Hi Oliver,

this sound dangerous since "bmn" sets PAR_GLOBAL_TEMP to a directory not writable by restricted users.

This is OK with the new version as long as the administrator runs ExifTool once without arguments to generate the help file (since it is no longer being deleted afterwards).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

obetz

  • Full Member
  • ***
  • Posts: 46
Re: Microsoft "Software restriction policies"
« Reply #21 on: April 03, 2019, 08:29:23 AM »
thanks for the clarification, I didn't see that the file is created only once to hold the help.