sparkle for wxpython

Anyone had any luck integrating Sparkle or something like it ( component for autoupdates ) in a wxpython app?

thanks,
Cliff

I had never heard of Sparkle, but I have been working on auto-updating recently, and it was quite a saga. Short story:

* I'm only developing and shipping on Windows at present.
* I package with PyInstaller followed by INNOsetup.
* I have a way of asking the server if a newer version is available. The details of the mechanism are unimportant.
* I used to send users to the download page, but decided that naive users were maybe not running the installer once they downloaded it.
* I downloaded the installer myself, using http and showing a progress dialog, then executed the installer with spawnl.
* The installer would not execute successfully because it held a handle to the (now-closed) calling process, so it failed, claiming it could not delete myprogram.exe
* I reduced the problem to a 3-line program and removed INNOsetup from the equation; I asked on the PyInstaller group, but the solution only deferred the problem:
http://groups.google.com/group/PyInstaller/browse_thread/thread/73bda547677fb5ff
* I hacked my way round it by creating a batch file, pointing Windows Explorer to it, and asking the user to execute it.

This story may or may not be of some use to you. Good luck!

Phil

···

At 09:49 AM 5/2/2008, you wrote:

Anyone had any luck integrating Sparkle or something like it
( component for autoupdates ) in a wxpython app?

thanks,
Cliff

What I have done in my application is as follows:

-Only deployed on MSW
-Uses NSIS to package an installer
-When checking for updates I use win32api.GetFileVersionInfo to see if
the version of the installer on the server is newer than __version__ in
my code
-If so, hide my program's windows, run the installer, then restart my
app.

Seems to work pretty good for our needs here. Note, I don't compile my
.py(w) files into an executable, so YMMV.

Also, the script for NSIS does some checking to see if the program has
already been installed. If it has, then don't give the user the option
to choose the directory. This makes updating a 3 click process. My
installer also checks to see if python, wxpython and any dependent
packages need installing and if so, it runs their respective installers.

-Kyle Rickey

From:
wxpython-users-bounces+kyle.rickey=bakerhughes.com@lists.wxwidgets.org
[mailto:wxpython-users-bounces+kyle.rickey=bakerhughes.com@lists.wxwidge
ts.org] On Behalf Of Phil Mayes

···

-----Original Message-----
Sent: Friday, May 02, 2008 4:18 PM
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] sparkle for wxpython

At 09:49 AM 5/2/2008, you wrote:

Anyone had any luck integrating Sparkle or something like it
( component for autoupdates ) in a wxpython app?

thanks,
Cliff

I had never heard of Sparkle, but I have been working on auto-updating
recently, and it was quite a saga. Short story:

* I'm only developing and shipping on Windows at present.
* I package with PyInstaller followed by INNOsetup.
* I have a way of asking the server if a newer version is available.
The
details of the mechanism are unimportant.
* I used to send users to the download page, but decided that naive
users
were maybe not running the installer once they downloaded it.
* I downloaded the installer myself, using http and showing a progress
dialog, then executed the installer with spawnl.
* The installer would not execute successfully because it held a handle
to
the (now-closed) calling process, so it failed, claiming it could not
delete myprogram.exe
* I reduced the problem to a 3-line program and removed INNOsetup from
the
equation; I asked on the PyInstaller group, but the solution only
deferred
the problem:
http://groups.google.com/group/PyInstaller/browse_thread/thread/73bda547
677fb5ff
* I hacked my way round it by creating a batch file, pointing Windows
Explorer to it, and asking the user to execute it.

This story may or may not be of some use to you. Good luck!

Phil

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users