473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

self-extracting installators in Python?

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
Jul 18 '05 #1
5 2611
"Nazgul" <lu********@go2.pl> wrote in message news:<bv**********@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
Jul 18 '05 #2
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
used to make self-installing packages and is free too use and
distribute (to the best of my knowledge..).


and with py2exe 0.5.0 a sample is provided to immediately drive innosetup
from python. It is superb

one setup.py, one "F5" in Scite, and a distributable setup.exe is build &
compressed (even with bz2 compression)

REALLY great.

Jul 18 '05 #3
Hello Harald!

It is really great thanks!
Anyway, I don't like the fact that it creates a separate "program" in
the
Add/Remove dialog on Windows :( I don't want any of my patches to be
placed there ... Can I avoid it?

Best Wishes,

Sylwia
Jul 18 '05 #4
Sylwa,

It is really great thanks!
Anyway, I don't like the fact that it creates a separate "program" in
the
Add/Remove dialog on Windows :( I don't want any of my patches to be
placed there ... Can I avoid it?


please do your research on

http://www.jrsoftware.org/isinfo.php
That is the inno setup home page, and inno setup is doing this additions
to "add/remove" dialog.

-------------------------

next: the world leading pc software manufacturer puts his patches into
"add/remove Programs dialog" on windows. And in corporate installations
it is not a bad idea ... imagine the dialog
"did you install Patch xxxx?"
"how can I know?"
"look at Settings, control panel, software..."

--------------------------

next: the lines in add/remove program are nothing more than registry
keys.
And google python modify registry will lead you to some samples of
removing that key AFTER installation

HTH

Harald

Jul 18 '05 #5
Thanks!

Best Regards

Sylwia
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marc | last post by:
Hi all, I was using Tkinter.IntVar() to store values from a large list of parts that I pulled from a list. This is the code to initialize the instances: def initVariables(self): self.e =...
15
by: Ralf W. Grosse-Kunstleve | last post by:
****************************************************************************** This posting is also available in HTML format: http://cci.lbl.gov/~rwgk/python/adopt_init_args_2005_07_02.html...
18
by: Ralf W. Grosse-Kunstleve | last post by:
My initial proposal (http://cci.lbl.gov/~rwgk/python/adopt_init_args_2005_07_02.html) didn't exactly get a warm welcome... And Now for Something Completely Different: class autoinit(object):...
4
by: David Coffin | last post by:
I'd like to subclass int to support list access, treating the integer as if it were a list of bits. Assigning bits to particular indices involves changing the value of the integer itself, but...
5
by: Mark Harrison | last post by:
Is there a way to do something equivalent to "import * from self"? Perhaps I'm doing something wrong, but I'm having a headache when dealing with class instance data, forgetting to always put the...
7
by: Andrew Robert | last post by:
Hi Everyone, I am having a problem with a class and hope you can help. When I try to use the class listed below, I get the statement that self is not defined. test=TriggerMessage(data) var...
84
by: braver | last post by:
Is there any trick to get rid of having to type the annoying, character-eating "self." prefix everywhere in a class? Sometimes I avoid OO just not to deal with its verbosity. In fact, I try to...
6
by: Bart Kastermans | last post by:
I am playing with some trees. In one of the procedures I wrote for this I am trying to change self to a different tree. A tree here has four members (val/type/left/right). I found that self = SS...
1
by: lpyth | last post by:
class abc: def __init__(self,x,y,z): self.x = x self.y = y self.z = z def add(self): c = self.x + self.y + self.z
3
by: Aaron Gray | last post by:
Regarding 'self' :- if (self) document.write( "self<br>"); if (self === window) document.write( "self === window<br>"); else if (self == window) document.write( "self == window<br>");
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.