[wxPython-users] Distributing a wxpy app - central server or
each workstation
Nicolas BRICHE
nbriche at free.fr
Thu Mar 1 07:56:49 PST 2007
Jon Cage a écrit :
> What about writing a batch file that is called to start the app up? It
> could (try to) copy the one off the server to a local area and run from
> there. That way if the network goes down you won't be stranded. This
> might not be so good if the app is opened regularly, but perhaps you
> could do some sort of version check to see if the version on the server
> is the same as their local copy?
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.
N.
--
"If you try to stay sane in life, it'll just
drive you crazy. So, you may as well go crazy
now and have fun with life."
--MegaZone
More information about the wxpython-users
mailing list