472,783 Members | 1,140 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,783 software developers and data experts.

Creating Self Extracting Zip using Python

Dear all,
Are there any utility that can be call by python to create self
extracting zip file. I'm now using the powerarchiever. But the command
line options aren't flexible enough. Basically, I would like to create a
self extracting zip with default file path extraction and force
over-write. The powerArchiever just don't let me call it unless I'm
using the GUI.
Any idea, experience and suggestion are welcome.
Thank you.
-Calvin
Jul 18 '05 #1
10 3582
"Calvin FONG" <ho*****@alumni.ust.hk> schrieb im Newsbeitrag
news:c0***********@news.hgc.com.hk...
| Dear all,
| Are there any utility that can be call by python to create self
| extracting zip file. I'm now using the powerarchiever. But the command
| line options aren't flexible enough. Basically, I would like to create a
| self extracting zip with default file path extraction and force
| over-write. The powerArchiever just don't let me call it unless I'm
| using the GUI.
| Any idea, experience and suggestion are welcome.
| Thank you.
| -Calvin
I use MakeSfx aka FreeExtractor (http://www.disoriented.com/) drive it with
Python. The command line options is flexible (enough), it's free, and it's
open source...

HTH,

Vincent Wehren
Jul 18 '05 #2
> Are there any utility that can be call by python to create self
extracting zip file. I'm now using the powerarchiever. But the command
line options aren't flexible enough. Basically, I would like to create a
self extracting zip with default file path extraction and force
over-write. The powerArchiever just don't let me call it unless I'm
using the GUI.
Any idea, experience and suggestion are welcome.
Thank you.


You are in the wrong newsgroup.

To answer your question, any command-line utility can be called with
os.system.

Pick any command-line utility you want. I prefer Info-zip:
http://www.info-zip.org/pub/infozip/

- Josiah
Jul 18 '05 #3
Vincent Wehren wrote:
"Calvin FONG" <ho*****@alumni.ust.hk> schrieb im Newsbeitrag
news:c0***********@news.hgc.com.hk...
| Dear all,
| Are there any utility that can be call by python to create self
| extracting zip file. I'm now using the powerarchiever. But the command
| line options aren't flexible enough. Basically, I would like to create a
| self extracting zip with default file path extraction and force
| over-write. The powerArchiever just don't let me call it unless I'm
| using the GUI.
| Any idea, experience and suggestion are welcome.
| Thank you.
| -Calvin
I use MakeSfx aka FreeExtractor (http://www.disoriented.com/) drive it with
Python. The command line options is flexible (enough), it's free, and it's
open source...

HTH,

Vincent Wehren

Thank Vincet, that's a nice open-source warez.
By the way, what does HTH stands for?
-Calvin
Jul 18 '05 #4
Josiah Carlson wrote:
Are there any utility that can be call by python to create self
extracting zip file. I'm now using the powerarchiever. But the command
line options aren't flexible enough. Basically, I would like to create
a self extracting zip with default file path extraction and force
over-write. The powerArchiever just don't let me call it unless I'm
using the GUI.
Any idea, experience and suggestion are welcome.
Thank you.

You are in the wrong newsgroup.

To answer your question, any command-line utility can be called with
os.system.

Pick any command-line utility you want. I prefer Info-zip:
http://www.info-zip.org/pub/infozip/

- Josiah

Thank Josiah, in fact, which newsgroup should I post
-calvin
Jul 18 '05 #5
Calvin FONG wrote:

By the way, what does HTH stands for?


Google is your friend, as usual. :-)

http://www.google.ca/search?q=acronym+hth

-Peter
Jul 18 '05 #6
Peter Hansen wrote:
Calvin FONG wrote:
By the way, what does HTH stands for?

Google is your friend, as usual. :-)

http://www.google.ca/search?q=acronym+hth

-Peter

thank you for ur help
Jul 18 '05 #7
DH
Peter Hansen wrote:
Calvin FONG wrote:
By the way, what does HTH stands for?

Google is your friend, as usual. :-)

http://www.google.ca/search?q=acronym+hth


TANSTASQ

I know people get their rocks off here patronizing newbies, but how
about pointing them to the tutor list instead?
Jul 18 '05 #8
> Thank Josiah, in fact, which newsgroup should I post

It depends on what operating system you are running on. Perhaps one of
the comp.os.* newsgroups would be more topical, or even comp.compression.

The reason this is not the correct newsgroup is because yours was not a
Python question. A Python question would be something like, "How do I
run external programs from within Python?", which would result in
pointers to os.popen or os.system. On the other hand, reordering your
question to make more sense to english speakers (without losing meaning):
"I am using Powerarchiver. It does not support all of the command-line
options that I desire. Can someone point me to a program that creates
self-extracting archives with better command-line support?"

You'll notice that your question has nothing to do with Python. It is
about zip files and executables.

- Josiah
Jul 18 '05 #9
> I know people get their rocks off here patronizing newbies, but how
about pointing them to the tutor list instead?


I don't know if it is patronizing newbies. I think it is more expecting
them to read the documentation that is available via keyword search at
google.

So few people actually spend the time to do /any/ sort of research into
their question, preferring to ask before they try to answer themselves.
95%+ of questions asked here can be answered with a quick browsing of
the tutorial, standard library, or google search. Do we encourage such
things, or should we point out that their questions can be easily
answered with a proper keyword search?

- Josiah
Jul 18 '05 #10
Peter Hansen wrote:
DH wrote:
Peter Hansen wrote:

Calvin FONG wrote:
By the way, what does HTH stands for?
Google is your friend, as usual. :-)

http://www.google.ca/search?q=acronym+hth


TANSTASQ

I know people get their rocks off here patronizing newbies, but how
about pointing them to the tutor list instead?

How would that have helped? Does the "tutor list" have a service
for answering questions about what commonly used acronyms mean?
I wasn't aware of that...

By the way, "patronizing" has a primary meaning of "to act as a
patron towards; to support; to aid", so I'll take your comment
as a compliment. (And thank you!)

Also, having checked the meanings of "stupid" that I find on
the web, I would have to say that there *are* stupid
questions. Stupid can be "very dull, insensible" and "resulting
from stupidity; formed without skill or genius". I thought the
question was more lazy or just indicating of inexperience than
stupid, though.

Calvin, is very likely neither stupid nor lazy, but just new,
and he didn't think to use Google. I gave a helpful pointer to
it and, after a few more such incidents occur, he'll likely turn
to it first in the future. (I'm sure we all went through periods
where we didn't think of Google first for such things. I know
mine lasted several years!)

Lastly, why not try helping newbies or others from time to time
yourself, instead of simply criticizing those who do?

-Peter

Thz, Peter, I'm new and I just need some guidance.
Thank you for your support.
-Calvin
Jul 18 '05 #11

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

Similar topics

0
by: David Mitchell | last post by:
Hello group, I'm trying to create a TCP server using Python, and I want it to run under Windows as a service. Now, I'm fine with building the TCP server using Python - done it lots of times,...
5
by: Nazgul | last post by:
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...
1
by: Sylwia | last post by:
Hi! How can I create in Python a self-extracting file containing some files that automaticly starts the setup program when I double click on the file? Is that possible in Python? Thank you...
2
by: Avi | last post by:
hi, Can anyone tell me what the problem is and how to solve it The following piece of code resides on an asp page on the server and is used to download files from the server to the machine...
0
by: k_nil | last post by:
Hi, I have created a self extracting exe. the exe will extract an exe and a txt file on the machine. I wana launch the exe as soon as the extraction happens. how could i do this? any information...
0
by: k_nil | last post by:
I have a link on my web page for a self extracting executable file placed on the server. When the link is clicked, 1) i could see dialog box with open or save options 2) when open clicked, self...
1
by: Terry Olsen | last post by:
Ok, now that I've got my disk imager program working, I'd like to attach a "self-extractor" to the front end of the image file and make it a self-extracting disk image executable file. The idea...
6
by: Werner | last post by:
Hi, I try to read (and extract) some "self extracting" zipefiles on a Windows system. The standard module zipefile seems not to be able to handle this. False Is there a wrapper or has...
1
by: cnivas | last post by:
Good Morning All, I'm doing a small application using python and MySQL. I'm connecting the database and also creating a table using python application. But, I cannot Insert the values into the...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
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=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
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...

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.