473,748 Members | 9,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Win32 Silent Install

Looks like the installer for the Win32 extensions has changed from Wise to
distutils, so now my automated silent installations don't work anymore.
Anyone know if the distutils binary installer can be run silently? I
haven't been able find a command line reference for distutils binaries (I'm
still sifting through http://www.python.org/doc/current/dist/, though...).

Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?

Anyway, I'm looking into this on the python.org and starship pages, but I
just thought I'd see if anyone can point me in the right direction...

- Matt
Jul 18 '05 #1
11 8596
"Matt Gerrans" <ma**********@h p.com> writes:
Looks like the installer for the Win32 extensions has changed from Wise to
distutils, so now my automated silent installations don't work anymore.
Anyone know if the distutils binary installer can be run silently? I
haven't been able find a command line reference for distutils binaries (I'm
still sifting through http://www.python.org/doc/current/dist/, though...).
There are no command line options for the distutils created installer,
and silent installation is not possible.
Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?


I should be quite easy to write a Python script that opens the binary as
a zipfile, and then does what the gui does without showing a gui.

Thomas
Jul 18 '05 #2
Matt Gerrans wrote:
Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?


You could use the ActivePython MSI package, which includes the PyWin32
extensions and offers a silent install option:

http://aspn.activestate.com/ASPN/doc...install_silent

Cheers,
Trent

--
Trent Mick
tr****@activest ate.com
Jul 18 '05 #3
That sounds easy enough, but I imagine the Acive State package requires some
kind of licensing. I'm pre-installing on millions of consumer PCs.
Jul 18 '05 #4
Matt Gerrans wrote:
That sounds easy enough, but I imagine the Acive State package requires some
kind of licensing. I'm pre-installing on millions of consumer PCs.

Ah, so your group is responsible for all the "I've found Python on my
computer, what does it do and can I remove it" messages we saw last year?

You are right about ActiveState, the copy you download from their web
site is licensed to prohibit redistribution. They might be prepared to
cut you a special license, but you'd have to ask them about that.

I'm guessing Mark Hammond would be able to build you a silent installer
for a modest price.

Off-topic, I'd be very interested to learn anything you could tell us
about why HP are installing Python (what it's used for, what you
experience has been, &c). If this could be made public it would be nice
to include it as a "Python success story".

regards
Steve
(PSF PR Committee Chair)
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #5
On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <st***@holdenwe b.com>
wrote:
You are right about ActiveState, the copy you download from their web
site is licensed to prohibit redistribution. They might be prepared to
cut you a special license, but you'd have to ask them about that.


Does it mean it's not allowed to build an application with ActiveState
Python, and generate an installer that installs the whole thing,
forcing users to go to ActiveState's web site and download the
interpreter? Gee, that changes everything...

Luke.
Jul 18 '05 #6
Luke Skywalker wrote:
On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <st***@holdenwe b.com>
wrote:

You are right about ActiveState, the copy you download from their web
site is licensed to prohibit redistribution. They might be prepared to
cut you a special license, but you'd have to ask them about that.

Does it mean it's not allowed to build an application with ActiveState
Python, and generate an installer that installs the whole thing,
forcing users to go to ActiveState's web site and download the
interpreter? Gee, that changes everything...

Luke.


Obviously the license agreement at
http://www.activestate.com/Products/...agreement.plex
would be the authoritative statement. ActiveState do, however, license
their distribution for OEM purposes, as the links to the right of the
above-quoted page suggest.

However, the current Community License (v4) says: """ ...
2. You may make and give away verbatim copies of this Package for
personal use, or for use within your organization, provided that you
duplicate all of the original copyright notices and associated
disclaimers. You may not distribute copies of this Package, or copies of
packages derived from this Package, to others outside your organization
without specific prior written permission from ActiveState (although you
are encouraged to direct them to sources from which they may obtain it
for themselves). ..."""

This makes is pretty clear that if you plan to distribute outside your
own organization they expect you to get an OEM license if you want to
use their distribution.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #7
You guessed correctly. Python is on HP (and Compaq now) PCs because I put
it there.

And yes, I did get the "I've found Python on my computer, what does it do
and can I remove it" from the support group. How to answer that? You
have a computer with Windows Script Host (JScript & VBScript) built in and
you want to remove Python? I think the best answer is "it does all kinds
of wonderful things! You can remove it, of course (easy enough, it is in
the "Add / Remove Programs" list, after all), but why don't you learn how to
use it instead? (I even unhooked the file association to prevent Python
file attachments in emails from giving a black eye to Python, so out of the
box, it was relatively safe).

I've use Python and the Win32 extensions for much of the automation of the
process that pre-installs all the software on the PCs. Of course, Python
is very versatile and is ideal for the wide range of tasks, large and small
that are involved. Being that it is both powerful and easy to learn (and
also because of no lack of evangelism (I hate that term, but don't have a
better synonym) on my part), it has been adopted as the main language used
by the whole division for build-automation related tasks. Before Python, I
wrote the tools in C++ and did scripting with JScript. I don't think I
have to tell anyone on this list how dramatic an increase in productivity
Python can give over these in many areas (there are a still a few areas
where the C++ tools reign, but Python also works well with those).

I was contacted by Kevin Altis and later Stephan Deibel about doing a Python
success story about this and I was game. I did start it, but didn't get
it finished in time for the Python Success Story book before OSCON 2004 in
July and have since put it on the back burner. I need to take a little
vacation from work, so I can finish that.

- Matt
Jul 18 '05 #8
Matt Gerrans wrote:
You guessed correctly. Python is on HP (and Compaq now) PCs because I put
it there.


Do you think you could expand on the brief description about this
that is to be found in the following page?

http://www.python.org/doc/faq/installed.html

The python.org webmaster email address gets *lots* of requests
from innocent and ignorant users who are concerned about finding
this thing called "Python" on their new machines, and most of
them seem curiously more interested in removing it than in discovering
what it actually is there for.

The auto-response points them to the above page, I believe, and it
would perhaps save the webmaster types some time if there was a more
official HP version of the situation than the "Apparently some of
HP/Compaq's administrative tools are written in Python." comment that is
there now.

-Peter
Jul 18 '05 #9
Peter Hansen wrote:
.... innocent and ignorant users who are concerned about finding
this thing called "Python" on their new machines, and most of
them seem curiously more interested in removing it than in discovering
what it actually is there for.


This has been my experience as well. I don't have millions or even
thousands of users... only hundreds. However, this is the exact same
reason that I try to hide Python installs and make them unremovable. I
guess all of the Windows based Spyware and Adware have made people
overly cautious... if it looks suspicious, then remove it. To the
average user, the name 'Python' doesn't sound harmless either.
Jul 18 '05 #10

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

Similar topics

0
1298
by: PiErre | last post by:
Hi, I used to install python 2.2 with the option /s (silent) on win2k server. Now I migrated to python 2.3 (Python-2.3.4.exe) and it seems to me that in all the registry values the drive is missing EG: under HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon The (Default) values I found is \Python23\Py.ico
29
2461
by: Stephen Ferg | last post by:
I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for Python, and that moves me to express some thoughts about Python's future prospects. I submit that the future expansion of Python usage is constrained by Python's lack of a CPAN-like facility, and I submit that without a CPyAN Python will never even get close to achieving the degree of...
2
2376
by: Christopher Subich | last post by:
From the documentation, it looks like DParser-python will do what I need, but I'm having trouble getting it installed properly. I'm using a win32 environment, with official 2.4 Python binaries. The official DParser for Python win32 binaries (staff.washington.edu/sabbey/dy_parser) fail, saying that I don't have Python 2.3 installed. :/ Compling the source on cygwin (with -mno-cygwin) succeeds in compilation, but then attempting to...
3
41875
by: TThai | last post by:
Hi, I've created an application that uses crystal report in VB dotnet environment. I've created an MSI package to be installed on the client pc to make the crystal report to work. However, the MSI requires User Intervention. Does anyone know how to create MSI in a silent mode in visual studio. This application will be pushed to the client from the server and the MSI package needs to be in a silent mode meaning all the user intervention...
5
6776
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it...
15
2958
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility, controlled via Plesk control panel, and turned over to me with Fedora Core 6 in an empty state. This is the standard way you get a server in a colo today. Bringing Python up in this completely clean environment is a huge hassle, and it doesn't...
0
330
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 380 open (-36) / 3658 closed (+65) / 4038 total (+29) Bugs : 965 open ( -9) / 6555 closed (+35) / 7520 total (+26) RFE : 272 open ( +4) / 253 closed ( +2) / 525 total ( +6) New / Reopened Patches ______________________
4
2534
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal error LNK1141: failure during build of exports file error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"' failed with exit status 1141.What shoud I
3
4937
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory "D:/softwares/Apache2.2/htdocs"> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory>
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
3
2215
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.