Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > installer question

Reply
Thread Tools

installer question

 
 
Guy Robinson
Guest
Posts: n/a
 
      12-09-2005
Target audience is little or no programming experience.

I have a win32 only library I need to write an installer for. As part of the
installation it must:
1.. find where a program is installed
2.. copy a file to the directory
3.. add the directory to the pythonpath and change a ini file.
4.. add a example directory at a user selected path.As well as add this to
pythonpath.
5.. Add the main library to site packages.

There is also a package of examples which need to be independently upgradable
and located in the main directory.

Suggestions?
I'm thinking disutils would make for the easiest method but as far as I can see
you can't run a script on finishing the installation or get the user to select
from a directory. Nor does it seem contain methods to find windows programs
without downloading pythonwin32 as well.

For the examples, NSIS or equivalent looks to be what I need but overly
complicated. Can you combine NSIS and disutils? Or should I just use NSIS
without disutils.

Advice appreciated. The first time I've released software before

Guy
 
Reply With Quote
 
 
 
 
Larry Bates
Guest
Posts: n/a
 
      12-09-2005
Take a look at Inno Installer. You should be able to
do everything you list. You may also want to consider
using py2exe to package up your python program into
..exe prior to creating installer file. That way you
eliminate the requirement of having python, pythonwin32
installed and you don't have to do anything to pythonpath
or to site packages.

-Larry

Guy Robinson wrote:
> Target audience is little or no programming experience.
>
> I have a win32 only library I need to write an installer for. As part of
> the installation it must:
> 1.. find where a program is installed
> 2.. copy a file to the directory
> 3.. add the directory to the pythonpath and change a ini file.
> 4.. add a example directory at a user selected path.As well as add this
> to pythonpath.
> 5.. Add the main library to site packages.
>
> There is also a package of examples which need to be independently
> upgradable and located in the main directory.
>
> Suggestions?
> I'm thinking disutils would make for the easiest method but as far as I
> can see you can't run a script on finishing the installation or get the
> user to select from a directory. Nor does it seem contain methods to
> find windows programs without downloading pythonwin32 as well.
>
> For the examples, NSIS or equivalent looks to be what I need but overly
> complicated. Can you combine NSIS and disutils? Or should I just use
> NSIS without disutils.
>
> Advice appreciated. The first time I've released software before
>
> Guy

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pywin32 vista installer fix & general distutils installer name bug Ville Vainio Python 0 04-09-2008 07:16 PM
can distutils windows installer invoke another distutils windows installer timw.google Python 1 05-11-2006 10:07 PM
JNLP installer-desc question Roedy Green Java 2 02-03-2006 11:20 PM
Distributing Python applications - McMillan Installer question Chris Python 1 08-26-2004 05:15 PM
Mcmillen Installer Question Glawster Python 3 02-11-2004 11:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57