Right way in include dylib/DLLs for installer

Yeah, I saw your post here:

One of the libraries in question here is ONNX, in fact.

I’ve noticed that Windows already has a (minimal) install of onnxruntime in system32. It won’t work of course, and I can’t overwrite it, so I’m going to try and add a company specific prefix as suggested.

Given that on Windows you run a build.bat file to build onnx, I’m not sure how to go about this, but I’m sure the answer will present itself (eventually) :slight_smile:

[edit] actually, there is a cmake file, and you just have to replace “onnxruntime” with “onnxruntime_company” in a couple dozen places.

The windows /DelayLoad (and then placing the library in AppData or some other custom path) looks like a nice option too if it works, and of course I’ll try to get a static build (though that has failed so far).

juce::DynamicLibrary is nice too. I’d never noticed that class before. A shame you can’t just pass an arbitrary path to it, but I understand why that might be a limitation. Guessing there is no easy way to make this one work for a custom path on windows.