473,549 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Distutils: bdist_wininst. System integration use. (--silent option?,etc.)

Hello, I'm writing in regard to the distutils package for python.

I regularly repackage installers for silent/automated distribution on
numerous Windows PCs throughout an enterprise. Sites such as
AppDeploy (http://www.appdeploy.com) and tools such as WISE all
suggest that this is a pretty common task.

Increasingly, however, I've found that tools like WISE's setup capture
are becoming less relevant for this task. Rather than running an
install and capturing the output, it is getting easier and more
reliable to simply wrap the original vendor's installer and invoke it
with the proper command line parameters to produce a silent install.
So, repackaging is really becoming meta-packaging.

What is important with this meta-packaging is to properly prepare the
system environment (clean up icons, set registry keys, backup user
files, etc.) for the execution of the vendor's installer. From my
experience, flow control and general language consistency of the
various installer applications is abysmal. Python seems like the
logical replacement for the anemic or otherwise ill-planned scripting
languages that plague Windows software installers.

Enter Python:
The bdist_wininst tool looks to be very close to ideal for such a
purpose. However, it lacks a couple key features
(please correct me if I'm wrong on any of these):
1. Silent or non-interactive installations
2. Installations to arbitrary locations

Currently, on packages requiring heavier weight logic, I must invoke a
py2exe generated executable. This works very well, but as more and
more logic moves from an installer package to a python script, it
seems rather silly to use an entirely separate installer program to
merely bundle the py2exe generated files into a single self-extracting
installer.

I caught another thread from some time ago, where the python
developers talked about installers and their respective problems.
(http://mail.python.org/pipermail/dis...ly/002529.html)
It seems like many good questions were raised, but I never found that
any elegant solution was found.

So, is anyone else using python for systems integration work? Would
someone familiar with the bdist suite care to speculate on the
difficulty/sensibility in extending the bdist package for this
purpose?

Perhaps a system integration toolkit would be a better place for this?
It seems, though that bdist might be the right place for the
installer bits, but maybe people see other areas where code reuse
could take place. Ultimately, maybe a bdist_msi might be possible. I
think perl has some kind of MSI generating code. Maybe this could be
a starting point for such an endeavor.

Sorry for the length of this post. I'll be good next time.

-Peter
Jul 18 '05 #1
1 2791
"Peter Schmiedeskamp" <ps******@yahoo .com> writes:
So, is anyone else using python for systems integration work? Would
someone familiar with the bdist suite care to speculate on the
difficulty/sensibility in extending the bdist package for this
purpose?
It should certainly be possible - it is open source, so you can see
for yourself what precisely it does. It being open source, changes
occur only when volunteers contribute them, though.
Ultimately, maybe a bdist_msi might be possible.


Yes, I've been looking into creating MSI through the installer
automation interface. Unfortunately, there is too little documentation
about *creating* databases - much of the documentation deals with the
setup process itself. For example, my current questions are:

- how do I get a package initialized with the default schema? In
particular, how do I get the _Validation table filled?

- how do can I add the file content to the database (I know how I can
put things into the Files table).

Regards,
Martin
Jul 18 '05 #2

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

Similar topics

3
1955
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution system for "3rd party" Haskell libraries (those not distributed with the compilers). Python's Distutils has come up a few times. The Haskell...
1
1704
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do this for me, and so far, it works very well, so I'm trying to make it easier to use and available to more developers. There is a brief (and...
11
8539
by: Matt Gerrans | last post by:
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...
7
4004
by: MuZZy | last post by:
Hi, We are developing a CRM (Customer Relations Management) module for our app and my boss wants to provide integration with PBX (phone systems used by lots of companies) so that if a user gets a call, application pulls up caller's information from CRM database based on caller's phone number. I found several solutions like callerid.com...
1
2021
by: MuZZy | last post by:
Hi, One of our bigger clients requested to have a phone automation option for our CRM product (developed on C#) as they are using it now with ACT CRM. Unfortunately i don't have much info on how do they use it and no way i could get to tehir place as they are in Europe (i'm in US). All i know that they are using Nortel phones with TAPI...
3
5404
by: Simon | last post by:
Hi All, I'm hoping someone will have some words of wisdom for me regarding MS Clustering on Windows 2003. I have a service that runs on a cluster. During invocation it's supposed to determine from the cluster which node is active (this is a active/standby configuration) and either proceed or sleep depending on the status. The interface...
2
1341
by: TexasNewbie | last post by:
import java.io.*; import java.util.*; public class Chunk { public static void main (String args) throws IOException
1
1886
by: kanni04 | last post by:
While doing the setup of the project we have to attach the fine dotnetfx.exe file. while installing that it will giving the error box with "COMMAND LINE OPTION SYNTAX ERROR. TYPE COMAND /? FOR HELP". so i am not understanding why that error is occuring. please reply me soon
112
5377
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions that may print some messages. foo(...) { if (!silent)
0
7471
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...
0
7985
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...
1
7503
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...
0
7830
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...
1
5387
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...
0
3517
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...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1962
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
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.