4 ms·
> I suspect Windows behavior is more like an overlook I prefer to have dynamically loaded libraries (dll's) but never shared locations, other than for OS level
by alkonaut 11y ago
> I suspect Windows behavior is more like an overlook
I prefer to have dynamically loaded libraries (dll's) but never shared locations, other than for OS level libraries and runtimes (which are rarely installed by applications).
Everything I manage myself I prefer to keep in the application directories. This is also the normal behaviour of application installers on windows.
\app1\app1.exe
\app1\somelib-1.0.dll
\app2\app2.exe
\app2\somelib-1.1.dll
Now it is pretty reasonable that the application searches for dependencies somewhere relative to the directory of the application. This has several benefits but a few security drawbacks 1) hijacking is possible since the current directory is used, 2) if there is a security vulnerability in somelib, you have to patch all applications that use it. I much prefer this to the idea of applications installing files to a shared location on my disk however.