473,806 Members | 2,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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 1755
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
1584
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 insert them into the framework defined by BartPE's author. I "think" I've got it going, except for a single PyWin error: 'No module named pywin.framework.startup.' That is, when I launch PyWin, I get an error dialog w/ this message. I suspect it...
3
1806
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 most part, it's working very well, but I am running into a nasty problem, which took me a few hours to finally understand. This smells to me like a python bug, but I could be wrong. Much googling didn't turn up anything relevant. Here is a...
3
1452
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 package the new mde, and a readme, and sometimes a video or help files into an install exe. I then post it to my website and provide the user with a link to download and insall it. . It puts a shortcut to the files where i define, program files,...
2
3534
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 module available? This is my script so far : import gettext gettext.install('test2', '.', unicode=1) lang1 = gettext.translation('test2', languages=)
6
1841
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: # insanely simply command interpreter import Commands import sys
7
2320
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 construct the app framework/core functionality using one of those languages, then extend the app w/ Python, the same way one can extend the MS Office apps using VBA. The core Python docs provide the fundamental info one needs to get started. But, I've...
1
2011
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 presenting some unique challenges. First off, I have begun this project by writing a text mode only interface. I would like to provide a GUI as an alternative, but I ran into problems in my early tests. Thinking that Tkinter would be the
3
2469
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 progressing beyond opening the URL. I ran the code line by line on the pythonwin's IDE and it ran fine but when i execute the whole script it gives this error: Traceback (most recent call last):
0
793
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 vb script file that pops up a dialog to accepts dbname and server details.I just want to use this script as part of my installer,so that when my installer is run i need to get the inputs and pass it to my vb script file.Am trying with custom actions...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.