473,396 Members | 1,879 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.

[Q] About an Installer Script for PyWin

I need PyWin under the covers, that is, to install it as part of an
application, but in such a way that it isn't visible to users. I'm
concerned about a so-called "power-user", seeing the Python directory
and/or the corresponding entry in the 'Add/Remove Programs' list,
breaking my app by uninstalling what he/she thinks is removing an
'unnecessary program.'

Unfortunately, I don't see any installer scripts, like for Inno Setup
or NSIS in the source archive I just downloaded from SourceForge.
I'd love to volunteer to do something like this for the larger
community of Pythonista, but I can't find any info (via Google) about
this. AFAIK, the critical info is related to the registry settings
for the Win32-related elements. I'm especially concerned about
installation of the COM infrastructure, as getting the other registry
settings is mostly tedious (but doable), trial-and-error exports from
the Registry. The rest "should" be simply a matter of creating the
primary directory structure and copying the archive files to it.

Does anyone have pointers ? TIA....

Aug 25 '06 #1
1 1728
Mr. Roboto wrote:
I need PyWin under the covers, that is, to install it as part of an
application, but in such a way that it isn't visible to users. I'm
concerned about a so-called "power-user", seeing the Python directory
and/or the corresponding entry in the 'Add/Remove Programs' list,
breaking my app by uninstalling what he/she thinks is removing an
'unnecessary program.'

Unfortunately, I don't see any installer scripts, like for Inno Setup
or NSIS in the source archive I just downloaded from SourceForge.
I'd love to volunteer to do something like this for the larger
community of Pythonista, but I can't find any info (via Google) about
this. AFAIK, the critical info is related to the registry settings
for the Win32-related elements. I'm especially concerned about
installation of the COM infrastructure, as getting the other registry
settings is mostly tedious (but doable), trial-and-error exports from
the Registry. The rest "should" be simply a matter of creating the
primary directory structure and copying the archive files to it.

Does anyone have pointers ? TIA....
Use py2exe to convert to .exe and a library.zip file that contains all the
modules. Then all that gets installed is pythonwinxx.dll. This also
removes dependencies on a particular version of Python being installed.
Wrap that in an Inno Setup script and you are good to go. There is an
entry on the Add/Remove Programs list for your program, but not for
Python (as the full runtime isn't ever installed). Inno Setup can do
all the registry/com stuff that you need.

BTW-Python is now a 'necessary' program on many computers (Compaq/HP) as
some of their management software is written in Python. So "power-users"
need to be pretty careful removing it these days.

-Larry Bates
Aug 25 '06 #2

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

Similar topics

0
by: The Jetman | last post by:
I'm trying to port PyWin into a limited version of Windows XP, called BartPE. Essentially, it's a matter of taking the installed elements of most WinApps (ie. registry settings and files) and...
3
by: Fernando Perez | last post by:
Hi all, I am seeking advice/help from those with more win32 experience than myself. I am trying to build a proper win32 installer for IPython, after a user did most of the hard work. For the...
3
by: Gerry Abbott | last post by:
I have ODE 2000, as well as other versions of Office. Currently i install and split solutions into mde Fe and mdb Be files at clients site. Then for updates (which exclude changes to the data) i...
2
by: Thomas W | last post by:
I'm trying to wrap my head around the docs at python.org related to the gettext-module, but I'm having some problem getting it to work. Is there any really simple, step-by-step on how to use this...
6
by: Charles Krug | last post by:
Here's the deal: I've a dead-simple command-line program I'm using to test things that I can't (for various reasons) test in the IDE. Here's a do-nothing subset that shows the idea: #...
7
by: Mr. Roboto | last post by:
Folks: I want to embark on a project to add Python (actually, wxPython or PythonWin) to a new Windows app I want to start writing soon. Essentially, I want to take VB6 (or pos Delphi) and...
1
by: dwelch91 | last post by:
c.l.p- I am undertaking writing an installer for a software package using Python. It is exclusively for Linux. Because this is an installer and has to run on numerous Linux distros, it is...
3
by: Forced_Ambitions | last post by:
Hi Guys, I am facing a problem with a script that i had written to automate opening a website and signing on to it. It was running fine for a long time but all of a sudden it has stopped...
0
by: gbal19 | last post by:
Hi Technical gurus, Am trying to create installer for my application(asp.net),i am using database scripts to create db related stuff for my application.This is done as of now explicitly calling a...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.