Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
7Zip dependencies
#1
Hello

i play with portable 7-zip command line. The portable executable is called 7z.exe

One problem I face is that for certain procedures (i.e extract archives with directories inside), it relies on a dll
file called 7z.dll.

After reading the z-zip forums and google searches, it seems related to the executable not loading dynamicaly
at start, and thus I can have path problems to find it.

Question : what is the way to tell 7z.exe in QM where to find the 7z.dll and continue the process??

IIRC, in C++, there was something like export LD library or loadlibrary function, i can't recall.....

Ty
#2
Macro Macro1844
Code:
Copy      Help
run "7z exe path\7z.exe" commandline "" "7z dll path"

;if the dll is in same folder as exe:
run "7z exe path\7z.exe" commandline "" "*"
#3
The code line is like that:

RunConsole2(F"g:\Program Files\7-Zip\7z.exe t {_s} -p{mdp} -y -t{ext} -o{chemin}" output)
7z.dll is in g:\Program Files\7-Zip\, along to the executable....
#4
RunConsole2 also has 'current directory' parameter.
LoadLibrary etc searches in current directory when does not find the dll in a more reliable place. But at first it looks in directory of the program file.
#5
Ok, the "*" did the trick.

I was mislead by the CurDir parameter, i didn't think it was related to the executable, but to the file processed.

If I copy 7z.exe and 7z.dll in $my qm$ QM folder, would they be used in a portable/regular QM install ?


Forum Jump:


Users browsing this thread: 1 Guest(s)