takluyver / pynsist

Build Windows installers for Python applications
https://pynsist.readthedocs.io/
Other
882 stars 119 forks source link

create single file exe installer #241

Closed Eliav2 closed 2 years ago

Eliav2 commented 2 years ago

is this possible to use this library to create a single file exe installer?

I will explain - I built a GUI tk application, I can use pyinstaller to build dest folder (with exe run and all dependencies inside), then archive it as a zip, and then use nsis to create single file installer based on this zip.

so, is it possible to use this lib and create a single file installer similarly?

takluyver commented 2 years ago

If you really mean an installer - an exe you run to install the application - then yes, that's what Pynsist is for.

When people talk about 'single file' in this context, they usually mean an exe file that runs the application directly, without needing to install it. This usually works by extracting files to a temporary folder and then running the application from there. Pynsist doesn't do this, but it is an option in Pyinstaller.

Eliav2 commented 2 years ago

no - I mean actually a single file installer for installing the application (that could be installed as a folder with many files), I don't mean creating single file exe for running the application, but a single file installer that can install the app

takluyver commented 2 years ago

OK, in that case, yes, that is what Pynsist gives you (or tries to).

Eliav2 commented 2 years ago

But the build folder has many files except the installer, you say only the exe installer is necessary?

takluyver commented 2 years ago

Yup, sorry for any confusion - it uses those files to produce the installer, but the installer should then work by itself.

Eliav2 commented 2 years ago

Thank you