Examples using msilib to build windows installers

Discussion in 'Python' started by imageguy, Apr 3, 2008.

  1. imageguy

    imageguy Guest

    I have been using InnoSetup to distribute my wxpython app and ir works
    great, howver, I would like to offer a *.msi installer to customers as
    an option and this isn't available using Innosetup.

    It would appear to me that the msilib library included with standard
    python 2.5 would allow be to do this. I found the source code that
    builds the python distrubition installer packages, but I was wondering
    if there were other examples that I can learn from.

    TIA.
     
    imageguy, Apr 3, 2008
    #1
    1. Advertising

  2. > It would appear to me that the msilib library included with standard
    > python 2.5 would allow be to do this. I found the source code that
    > builds the python distrubition installer packages, but I was wondering
    > if there were other examples that I can learn from.


    Actually, the installer itself is built with Tools/msi/msilib, which
    predates the msilib shipped in 2.5; the former one uses ActiveX
    (automation), whereas the latter one links directly to a native
    library (and hence doesn't require PythonCOM). That library was
    also used (with modifications) to build Enthought Python.

    In any case, the single known application of the shipped msilib
    is the bdist_msi command of distutils.

    If you want to start using MSI, you absolutely have to know about
    the database tables and their purpose. Use orca.exe to inspect
    MSI files, and try to make sense out of that. Read MSDN
    documentation. msilib greatly helps in writing installers quickly,
    but the "learning curve" is perhaps even steeper than "mere"
    MSI, as you need to understand both the MSI principles themselves,
    and then how msilib wraps it in a more compact form.

    Of course, if you can manage to package your application as a
    distutils package, you can just try running bdist_msi, and see
    what you get.

    Regards,
    Martin
     
    Martin v. Löwis, Apr 4, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Elmegaard

    distutils for non-python windows installers

    Brian Elmegaard, Oct 27, 2004, in forum: Python
    Replies:
    3
    Views:
    441
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 29, 2004
  2. SPE - Stani's Python Editor

    Built windows installers and Cygwin

    SPE - Stani's Python Editor, Nov 23, 2005, in forum: Python
    Replies:
    1
    Views:
    385
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Nov 23, 2005
  3. Darren Dale
    Replies:
    0
    Views:
    317
    Darren Dale
    Jun 29, 2008
  4. Acrive
    Replies:
    2
    Views:
    174
    Acrive
    Jun 20, 2010
  5. Replies:
    0
    Views:
    426
Loading...

Share This Page