creating a ustom installer

Are there any docs available on how to create a custom wxpython installer for win32?
I want to package my application, python and wxpython all in one single installer for convenience. Since I want it to be upgradable by normal, official python and wxpython releases if possible, is there any documentation which tells me what registry settings I have to set and so on?

And for my own testing purposes: is there a way to have more than one version of python/wxpython installed at the same time?

Alex

Google for py2exe and Inno Setup. Py2exe packages up all your DLLs and your application files, and Inno Setup will create an installer. However, you will not be able to upgrade your customers' installs with official packages of python or wxpython. At least, not that I know about. You will need to build subsequent versions of your installer, which will package everything up again.

Yes, you can have more than one version of python installed. On Windows they install into different directories by default. You can also have different versions of wxPython installed, but from what I've seen, you can only have 1 version of wxPython installed per version of Python. You will not be able to mix wxPython versions within one Python install, as they will stomp on each other in your site-packages directory. Again, that I've seen, i could be wrong.

Regards,

---Peter

···

On Sep 24, 2004, at 2:54 PM, A. Klingenstein wrote:

Are there any docs available on how to create a custom wxpython installer for win32?
I want to package my application, python and wxpython all in one single installer for convenience. Since I want it to be upgradable by normal, official python and wxpython releases if possible, is there any documentation which tells me what registry settings I have to set and so on?

And for my own testing purposes: is there a way to have more than one version of python/wxpython installed at the same time?

Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

      =====================================================================
          Please note that this e-mail and any files transmitted with it may be privileged, confidential, and protected from disclosure under applicable law. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this communication or any of its attachments is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and deleting this message, any attachments, and all copies and backups from your computer.

Peter Herndon wrote:

  You can also have
different versions of wxPython installed, but from what I've seen, you can only have 1 version of wxPython installed per version of Python. You will not be able to mix wxPython versions within one Python install, as they will stomp on each other in your site-packages directory.

There is discussion , right now, on wxPython-dev about a system for allowing this. It's likely it will be there in the next release.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Peter Herndon wrote:

Google for py2exe and Inno Setup. Py2exe packages up all your DLLs and your application files, and Inno Setup will create an installer. However, you will not be able to upgrade your customers' installs with official packages of python or wxpython. At least, not that I know about. You will need to build subsequent versions of your installer, which will package everything up again.

My problem is not how to create an installer for my application directly. I was a bit misleading when I talked about "application": my "program" is an plugin to an existing program: I wrote a DLL which makes it possible to use Python as a scripting language for Litestep (www.litestep.net, an alternative shell for windows). I need a fully capable python and wxpython (my gui lib of choice) since my users are supposed to write their own (wx)python scripts to extend their own litestep-themes.
But: the Litestep installer itself is only 3.5MB or so and people will balk at the prospect of downloading 19MB+ just to satisfy a new module for litestep itself when the average module is 50kB max. So one possibility I came up with is creating a "wxpython runtime package" like the JRE for Java: only the stuff needed to run scripts is included and nothing of the developer stuff. This would hopefully greatly reducing download size,especially when compressed with a much more efficient algorithm like bzip2 or7zip.

Yes, you can have more than one version of python installed. On Windows they install into different directories by default. You can also have different versions of wxPython installed, but from what I've seen, you can only have 1 version of wxPython installed per version of Python. You will not be able to mix wxPython versions within one Python install, as they will stomp on each other in your site-packages directory. Again, that I've seen, i could be wrong.

Since you say one can't install a "proper" custom (wx)python I will probably install my own private one under the Litestep directory. Is there a way to check for an already existing official python or wxpython on the system? If it satisfies the version requirements, I would want to use that instead of downloading my own version of only wxpython saving some traffic. If I know there is a proper wxpython, I might be able to fiddle with sys.path enough to make python happy

Alex

A. Klingenstein wrote:

So one possibility I came up with is creating a "wxpython runtime package" like the JRE for Java: only the stuff needed to run scripts is included and nothing of the developer stuff. This would hopefully greatly reducing download size,especially when compressed with a much more efficient algorithm like bzip2 or7zip.

There have been discussions about this, and a little work so far. See the mail list archives and also http://wiki.wxpython.org/index.cgi/wxPRE

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

A. Klingenstein wrote:

Are there any docs available on how to create a custom wxpython installer for win32?
I want to package my application, python and wxpython all in one single installer for convenience. Since I want it to be upgradable by normal, official python and wxpython releases if possible, is there any documentation which tells me what registry settings I have to set and so on?

Python makes some registry settings when installed, but I don't think it requires them to be set. Although if you don't set them yourself you may want to rewrite the main Python startup module so it ignores any registry settings that are there already and then distribute this slightly customized Python.exe.

wxPython doesn't require any registry settings, although the installer makes a few just so it can keep track of things for uninstalls and reinstalls.

And for my own testing purposes: is there a way to have more than one version of python/wxpython installed at the same time?

A mechanism is being worked on. In the meantime you can move things around manually and then set PYTHONPATH or edit a .pth file to select which one will be imported.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!