Deployment on Windows: DLLs path


I would like to deploy an application on Windows and put all the necessary OpenCascade DLLs in a specific folder, say a subfolder of application folder (this way I would keep the main folder clean, since the DLLs are many). Is there any way to do this other than adding the DLLs path to PATH variable? (I don't want to do this because I would like that different versions of my application can coexist on the same machine).

Many thanks


Hugues's picture

I am not aware of another way, but if you want to not alter the PATH variable persistently, you can write a batch file(.bat) that first sets the PATH for the required Open Cascade DLLs and then launches the exe.
When the batch exits, the PATH variable gets back to its initial value.

Hope this helps.

Orhun Birsoy's picture

You can add your application to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
If you add a string value with a name "Path" and data as "DllPath" (just look at the other entrie)". Under XP "DLLPath" can be releative to exe (I have not tried under other windows versions). One problem is your different versions should have different names.

Good Luck..