Itoo Software Forum

Author Topic: Registry vs env variables  (Read 122 times)

BP2709

  • Newbie
  • *
  • Posts: 2
Registry vs env variables
« on: November 29, 2018, 08:26:29 PM »
I noticed that starting in FP6, some aspects of FPP can be configured with environment variables (https://docs.itoosoft.com/forestpack/installation-and-customisation). Thank you for that.

However, it appears that registry entries are still required for the plugin to function. When first using the plugin it will complain about MainDir not being set in the registry even if its env var is set properly. But if you try to use the plugin again in the same max session it will actually create the registry entries for you.

Can all FPP paths be made available via env vars? For example, I tried setting ITOO_SOFTWARE_FOREST_PACK_PRO_LIBRARYDIR_FOREST_LIBRARY but that didn't seem to do anything.


Thanks!
Rob

BP2709

  • Newbie
  • *
  • Posts: 2
Re: Registry vs env variables
« Reply #1 on: November 30, 2018, 01:47:22 AM »
Also, what is the HKCU\Software\Itoo Software\Forest Pack Pro\WriteLibrary registry key used for?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1561
Re: Registry vs env variables
« Reply #2 on: November 30, 2018, 09:15:23 AM »
Hi Rob,

Big thanks for reporting this problem with Environment Variables. With your help, we've been able to reproduce this unwanted behaviour here too and we'll see what can be done to fix it - it'll need to be investigated more in deep by our main developers.

Best regards,

memento

  • Newbie
  • *
  • Posts: 1
Re: Registry vs env variables
« Reply #3 on: December 07, 2018, 02:25:29 AM »
Is it possible to get environment variables for LibraryDir, EffectsDir, MatlibDir, and TexturePaths? I'd like to have a completely portable install that doesn't require registry keys.

Also, what is the HKCU\Software\Itoo Software\Forest Pack Pro\WriteLibrary registry key used for? It's being created when the plugin is called but I don't know what it controls.