473,385 Members | 1,814 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,385 software developers and data experts.

File Install Program Using Python?

Hello, I'm currently working on a Modification for the PC game Battlefield
1942. I'm a pretty good VBA Programmer with some Foxpro under belt as well.
After reading a ton of stuff on-line I'm simply floored by everything Python
has to offer.

Anyway, I want to create an installation program that takes a folder and all
it's sub-folders and copies them from a compressed form into the proper
directory. Basically a simplified version InstallSheild or whatever.

I assume Python is capable of such a feat and I'm wondering if anyone can
spin me around, point me in the right direction and shove me toward my goal.

Any help would be appreciated.

Thanks
CB Hamlyn
Jul 18 '05 #1
2 1686
CB Hamlyn wrote:
Hello, I'm currently working on a Modification for the PC game Battlefield
1942. I'm a pretty good VBA Programmer with some Foxpro under belt as well.
After reading a ton of stuff on-line I'm simply floored by everything Python
has to offer.

Anyway, I want to create an installation program that takes a folder and all
it's sub-folders and copies them from a compressed form into the proper
directory. Basically a simplified version InstallSheild or whatever.

I assume Python is capable of such a feat and I'm wondering if anyone can
spin me around, point me in the right direction and shove me toward my goal.


It's definitely possible, but are you more interested in doing it for your own
educational purposes or for getting the job done? If it's the latter then free
installers like InnoSetup and the WinAmp installer will save you a lot of time
since they already work well.

If you just want to do this to learn more, then look into the ZipFile class in
the zipfile module for starters. You can add a lightweight GUI using Mark
Hammond's win32 extensions or Venster, and finally convert it into an
executable with py2exe or one of the other packagers out there.

-Dave
Jul 18 '05 #2
Thank you so much. I'd like to learn it and you've all given me a great
head start!

"Dave Brueck" <da**@pythonapocrypha.com> wrote in message
news:ma**************************************@pyth on.org...
CB Hamlyn wrote:
Hello, I'm currently working on a Modification for the PC game Battlefield 1942. I'm a pretty good VBA Programmer with some Foxpro under belt as well. After reading a ton of stuff on-line I'm simply floored by everything Python has to offer.

Anyway, I want to create an installation program that takes a folder and all it's sub-folders and copies them from a compressed form into the proper
directory. Basically a simplified version InstallSheild or whatever.

I assume Python is capable of such a feat and I'm wondering if anyone can spin me around, point me in the right direction and shove me toward my
goal.
It's definitely possible, but are you more interested in doing it for your own educational purposes or for getting the job done? If it's the latter then free installers like InnoSetup and the WinAmp installer will save you a lot of time since they already work well.

If you just want to do this to learn more, then look into the ZipFile class in the zipfile module for starters. You can add a lightweight GUI using Mark
Hammond's win32 extensions or Venster, and finally convert it into an
executable with py2exe or one of the other packagers out there.

-Dave

Jul 18 '05 #3

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

Similar topics

11
by: Joerg Schuster | last post by:
Hello, is there a way to compile a python file foo.py to foo.pyc (or foo.pyo) such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python foo.pyc') on the command line? Jörg Schuster
1
by: Peter Hartmann | last post by:
Hello, I could really use some help. I'm trying to install a python program on centos4 x86_64. When I run 'python setup.py' it ends up in /usr/lib64/python2.3/site-packages/ instead of...
1
by: Peter Hartmann | last post by:
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. #...
8
by: Krishnan Margabandhu | last post by:
I'm writing a Pocket PC app that will run when a device is first powered on. I want this program to get some data from the user and invoke a CAB file to install a software on the device. How do I...
13
by: Kevin Walzer | last post by:
Which of the Windows/Unix package builders for Python applications is capable of creating single-file executables? I'm thinking of: 1. py2exe 2. Mcmillan Installer/PyInstaller 3. cxfreeze ...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python 2.3.4. When I run the application through...
8
by: John Salerno | last post by:
I figured my first step is to install the win32 extension, which I did, but I can't seem to find any documentation for it. A couple of the links on Mark Hammond's site don't seem to work. ...
13
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them...
18
by: W. Watson | last post by:
See Subject. It's a simple txt file, each line is a Python stmt, but I need up to four digits added to each line with a space between the number field and the text. Perhaps someone has already done...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.