Accessing external DLLs

36 views
Skip to first unread message

Matt Carpenter

unread,
Jun 17, 2023, 3:07:16 AM6/17/23
to PyInstaller
Forgive if this is a duplicate.  I thought I sent this already.

I'm trying to generate an .exe from my python script which accesses external DLLs using ctypes, and I would like to *not* package the DLLs.  How do I use PyInstaller to generate an .exe which use the DLLs on the target machine it's running on?

I did some searching but I haven't found anything that talks about this scenario, even though I don't doubt you've already answered this question before.  If so, I apologize, please just point me at it.

Thank you in advance!
Matt

Jasper Harrison

unread,
Jun 17, 2023, 4:41:54 AM6/17/23
to pyins...@googlegroups.com
No special handling should be required that I can think of. You should be able to load a DLL just the same as in an unfrozen python script.


Jasper Harrison, aka Legorooj
Core Developer on PyInstaller






-------- Original Message --------
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/1045cc38-d4bc-47df-8af5-132b9705e5d1n%40googlegroups.com.
publickey - EmailAddress(s=legorooj@protonmail.com) - 0x164CF234.asc
signature.asc

Matt Carpenter

unread,
Jul 2, 2023, 6:30:40 AM7/2/23
to PyInstaller
Thank you, Jasper.  I finally figured out that I'm running into a problem with Win7, but it worked on Win10.  <facepalm>
Thank you for responding with the info!  There were some unknowns with PyInstaller that this helped me be certain about.
Is there a previous version of PyInstaller that I could use to create an .exe that works on Win7?

Matt

Reply all
Reply to author
Forward
0 new messages