[SOLVED] Environment variable with custom install location - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

[SOLVED] Environment variable with custom install location

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
Last edited by csmart on Wed Sep 30, 2009 3:04 am, edited 1 time in total.
csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

Re: Environment variable with custom install location

Hi all,

Never mind, I think this works if I use "[APPDIR]win32\"
Yay :-)

Thanks!
-c

Return to “Common Problems”