Python for professsional Windows GUI apps?

sturlamolden sturlamolden at yahoo.no
Mon Aug 24 11:08:07 EDT 2009


On 24 Aug, 14:08, Gilles Ganault <nos... at nospam.com> wrote:

> and problems
> linked to how to update users' PC remotely when I build a new version
> using eg. Py2exe.

Remote update is a problem regardless of language. It typically
involves the following steps:

1. Download the update from a server using a background thread.

2. When the program starts, look for downloaded updates. Install
updates, then launch the Python app.

The problem is that a program's DLLs etc. become write-protected when
the program runs. So you nees two programs that cooperate to install
updates. But regardless of language you will run into this problem -
it is not Python specific. With py2exe, you can solve this using two
executables. The first py2exe launch a script that installs updates,
then spawns the second py2exe executable. The second py2exe lauch a
script that installs updates in the first, then launch the Python app.
The Python app then run a background thread that downloads new
updates.


Sturla Molden



More information about the Python-list mailing list