472,982 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 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 2579
"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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.