self-extracting installators in Python?

Fuzzyman michael at foord.net
Wed Feb 4 03:53:47 EST 2004


"Nazgul" <lubowiecka at go2.pl> wrote in message news:<bvourc$d4r$1 at atlantis.news.tpi.pl>...
> Hi!
> 
> I want to implement a small tool in Python for distributing "patches" and I
> need Your advice. This application should be able to package all files
> chosen by a user into a self-extracting.exe so that when you click on it, it
> will extract the files and run setup.exe which among the other will copy
> these files into respective folders (the absolute paths could be written in
> some config file). Of course the files should be extracted first to a
> temporary directory and wiped out after use (the setup will copy them into
> respective folders).
> I know Python offers a zipfile module to play with ZIP file formats but I am
> not sure if it enables creating self-extracting archives too. And what about
> "configuring" the archive to run immediately a setup file after extracting
> the files? So my question is: is that possible in Python?
> 
> I will be grateful for any hints!
> 
> Thank You in advance,
> 
> Niki

Well... you could write a script to do it and make it executable using
py2exe... or you could build an innosetup distribution - which can be
used to make self-installing packages and is free too use and
distribute (to the best of my knowledge..).

Fuzzyman



More information about the Python-list mailing list