tags:

views:

23

answers:

1

I'd like to be able to choose which oci.dll the Qt plugin is using, the Qt documentation states:

When you run your application you will also need to add the oci.dll path to your PATH environment variable: set PATH=%PATH%;c:\oracle\bin

Is there another way than changing the PATH?

A: 

You can subkey of the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths. See http://stackoverflow.com/questions/3114618/adding-a-application-specific-paths-so-it-works-from-the-command-line-in-windows/3114674#3114674 and http://stackoverflow.com/questions/2822951/use-registry-to-startup-a-program-and-also-change-the-current-working-directory/ for details and other ways.

Oleg
Thanks, but for portability I'd rather not use the Windows registry.
gregseth
Changing of environment variable is platform dependent. If you explain how you application will be started, I can suggest you another ways, but you wrote too little information in your question.
Oleg