Greetings,
I need to set an environment variable (TESSDATA_PREFIX) so that tesseract-ocr (an external program we call) can find some data files it needs.
The files are bundled with our software and sit under the installation path in a "win32/data" directory. If I hard code the path (or use "[ProgramFilesFolder][Manufacturer][ProductName]\win32") everything works as expected.
However, if someone installs the software to a custom location, this environment variable will be incorrect.
Is there a way for the installer to use the actual install path to set the environment variable, i.e. "[FinalInstallPath]\win32"?
If not, how else might one solve this issue?
Thanks!
Chris
FOLLOW US
Get the latest news in Application Packaging