Re: Creating Installer or Executable in Python





Adam Pletcher wrote:
I'd second InnoSetup for Windows installers, it's easy and powerful (and
free). However, I don't think it can create actual .MSI files, only
.EXE installers. I wish it would create .MSIs, since those are easier
to automatically deploy for large user groups.

I'm not aware of any free tools for building MSIs, but I'd love to find
one.

I just learned about this one within the last week, wix
http://wix.sourceforge.net/

PHP.net uses it for their Windows installers.

-Shawn


- Adam

-----Original Message-----
From: python-list-bounces+adam=volition-inc.com@xxxxxxxxxx
[mailto:python-list-bounces+adam=volition-inc.com@xxxxxxxxxx] On
Behalf
Of sturlamolden
Sent: Wednesday, November 14, 2007 9:54 AM
To: python-list@xxxxxxxxxx
Subject: Re: Creating Installer or Executable in Python

On 14 Nov, 16:17, DanielJohnson <diffuse...@xxxxxxxxx> wrote:

Thanks for telling about py2exe.
Also note that you should build an MSI installer e.g. using InnoSetup
after applying py2exe.

You could skip the py2exe part and only use InnoSetup to create an
MSI. Most likely your client will not care if the executable file is
called .py/.pyw/.pyc or .exe. Windows users are generally ignorant to
the contents of the Program Files folder. They will not understand
what is there and certainly not care what is there. Therefore, the
only thing that really matters is to make it easy to install and run
the program.

That is:

1. Create an MSI that makes it easy to install the software (including
runtime and dependencies).

2. Use autorun if you ship a DVD or CD-ROM. The installer should start
automatically when the disc is placed in the player.

3. Make sure an icon on the "Start Menu" launches the program.


If you have done that, 99.9% of all clients will be happy. The latter
0.01% is stupid enough to think it matters if the suffix of the
executable is called .exe or not. Never mind these morons, just ship
an .exe that does nothing except to spawn your Python program and
exit.


Is there any utility that will help to make it as a .deb or .rpm
file
(for Linux)?
There is a tool called cx_Freeze which is similar to py2exe, except
that it works on several platforms, including Linux. You will have to
build the .deb or .rpm using other tools afterwards.






--
http://mail.python.org/mailman/listinfo/python-list
.



Relevant Pages

  • Re: published software: Unabled to extract deployment information.
    ... being able to publish an .exe file directly using group policy. ... can not be installed properly by GP using msi! ... WIndows Installer, ...
    (microsoft.public.windows.server.active_directory)
  • Re: published software: Unabled to extract deployment information.
    ... software with .exe extensions using group policy. ... can not be installed properly by GP using msi! ... File types that you use with Group Policy Software Installation ... WIndows Installer, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Error crystal websetup 9 install
    ... MSI: Cloaking enabled. ... MSI: Package name extracted from package path: ... The installer has encountered an unexpected error installing this ... The error code ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Creating Installer or Executable in Python
    ... ..EXE installers. ... Also note that you should build an MSI installer e.g. using InnoSetup ...
    (comp.lang.python)
  • The installer was interrupted
    ... MSI: Cloaking enabled. ... MSI: Package name extracted from package path: 'my.msi' ... Action start 12:08:13: FatalErrorForm. ... The installer has encountered an unexpected error installing this ...
    (microsoft.public.dotnet.framework.setup)