[wxPython-users] Distributing a wxpy app - central server or each workstation

António Barbosa (GN/dpi) ab at jn.pt
Thu Mar 1 10:12:40 PST 2007


Hi
What I usually do is:
In the main program:
(...)
v0=cfg.myVersion # actual version of app
v1=ReadVersion() # get new version string from base 
if getversion(v1)>getversion(v0):
	ExecFile="Update.Exe" 
	os.execv(ExecFile,("dummy","myApp.exe"))
# Update.Exe is a small app that updates files by ftp and in the end calls myApp.Exe
#os.execv executes the update program, replacing the current process.

This works quite ok.
AB

-----Original Message-----
From: Michael Hipp [mailto:Michael at Hipp.com] 
Sent: quinta-feira, 1 de Março de 2007 16:44
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Distributing a wxpy app - central server or each workstation

Nicolas BRICHE wrote:
> We're actually doing something close to this with an (quite insane) app 
> of ours:
> 
> In a "Launch.bat":
> 
> set REFERENCE_PATH="\\server\share\app"
> set LOCAL_PATH="C:\app"
> 
> xcopy %REFERENCE_PATH% %LOCAL_PATH% /H /Y /E /D /R
> 
> %LOCAL_PATH%\app.exe
> 
> This checks the local app's tree against the 'official' tree on the 
> server, updates as needed, then launches the app.
> 
> Of course, this is a simplified version.  For exemple, we also added a 
> 'lil gadget that displays a moving "Looking for updates" thingy so the 
> user doesn't freak when the app takes more than a second to launch.

Nicolas, would you be interested in sharing your complete version? I've been 
looking to do exactly this and it appears as if you've already solved it.

Thanks,
Michael

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





More information about the wxpython-users mailing list