Customize the location and filename of the native DLLs #99
Replies: 14 comments 3 replies
-
Hi, Scintilla.Something = () =>
{
// Your code here...
} Would you like to create a PR as a suggestion for the modification you suggested? |
Beta Was this translation helpful? Give feedback.
-
Yeah, seems simple enough. Unfortunately I don't have the time at the moment, still wanted to let you know |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Excellent idea, this approach should work very well. Can you submit a PR? |
Beta Was this translation helpful? Give feedback.
-
Definitely interested, [email protected] |
Beta Was this translation helpful? Give feedback.
-
I'm not against the idea...I think there are some inherent challenges and use case aspects to consider, but I'd be interested in hearing you out. |
Beta Was this translation helpful? Give feedback.
-
For me: to be able to ship a single binary, that extracts the DLLs to %TEMP% or another temporary location. |
Beta Was this translation helpful? Give feedback.
-
Sure, but that's not possible from what I understand.. can't load native DLLs from memory |
Beta Was this translation helpful? Give feedback.
-
Yup that's pretty much what I want to do. Store the DLLs in the binary, extract it to the filesystem, load it from temp. Boxedapp is not an option because it's closed-source, commercial and using a code cave to load a DLL from memory will get flagged by antiviruses anyway The other answers are for managed DLLs only |
Beta Was this translation helpful? Give feedback.
-
@W1zzardTPU for these two comments: "to be able to ship a single binary, that extracts the DLLs to %TEMP% or another temporary location." Can you elaborate more on what the scenario is you are trying to accomplish with extracting the dll's to a temp folder? Also, what problem does the two folder structure currently create and what is your suggestion for how to handle all 4 dll's? |
Beta Was this translation helpful? Give feedback.
-
To make it work in a portable scenario? Again .. I'm just shipping the EXE, no installer, just double-click to run
I'd just detect the right OS conditions and extract what is needed, to a temp location as mentioned before, so it doesn't pollute the user's directly |
Beta Was this translation helpful? Give feedback.
-
Would you say the temp folder location getting added to the initial check for the native libraries is the best way to accomplish this in your opinion? |
Beta Was this translation helpful? Give feedback.
-
I would rather have a way to provide a folder, maybe even the full path to the DLL file (including filename) |
Beta Was this translation helpful? Give feedback.
-
I'd like to request the ability to customize modulePathScintilla and modulePathLexilla
Right now this isn't possible because the relevant parts in Scintilla.cs are marked as private (not protected)
Another option could be to allow us to define some configuration options, or just expose the statics and make them writeable
Beta Was this translation helpful? Give feedback.
All reactions