ZTreeUpdater
Zeta Updater
ZUpdate.js is a JScript file that checks for the latest online zeta version, and if newer than the currently installed executable, downloads and installs it.Usage
Works autonomously when run from within ZTree, or by specifying the ZTree installation folder as /home:path command-line option.Example setup:
- Extract the ZUpdate.js to a Scripts directory below the ZTree home directory.
- Create two F9 menu items:
::Download and install Zeta-update :: Purpose: Launch Zeta Update :: Author: Martijn Coppoolse :: Version: 2009-02-05, v1.1 :: ZTW ver: any :: OS version: WinXP (perhaps Win2000 as well, but untested so far) :: Requires: Zeta Updater and CScript.exe (ships with Windows) :: Source: http://www.ztwiki.com/tiki-index.php?page=u_ZTreeUpdater :: Usage: n/a :: Note: ZUpdate.js must be in #ZTTools folder, otherwise adapt script :: History: n/a "%SystemRoot%\system32\CScript.exe" "%#ZTTools%\ZUpdate.js" /version:#ZTVersion
The second menu option will assume the currently highlighted file is an archive file containing an update, e.g. already downloaded from the ZTree.com
::Install ZTree update from selected archive "%SystemRoot%\system32\CScript.exe" "%#ZTTools%\ZUpdate.js" <strong>"%1"</strong>
The JScript file can be placed anywhere you wish, but if you put it somewhere other than #ZTTools, make sure you adjust the menu items to reflect the different location!
Future plans
Improvements for later versions (when I have time- customize backup location
- add command-line switch for removal of backups older than n versions
- implement archiverBB2.list() and only back up files actually present in the archive
- verify that the archive contains ZTW.EXE
Download
Latest version:ZUpdate-2009-05-11_1102.zip (7.14 KB) 2009-May-11 11:01 +02:00 (CEDT)
+ Added: support for release candidates
Previous versions:
ZUpdate-2009-02-05_1825.zip (7.00 KB) 2009-February-5 18:25 +01:00 (CEST)
* Fixed: support for layout of new forum + Added: /version: command-line option to avoid automatic testing of current ZTreeWin version (which takes a few seconds)
ZUpdate-2007-05-30_1045.zip (6.97 Kb) 2007-May-30 10:45 +02:00 (CEDT)
* Fixed: version comparison now recognizes v1.60.2 as being more recent than v1.60, but also v1.60 as being more recent than v1.60.rc2
ZUpdate-2007-02-28_1630.zip (6.68 Kb) 2007-Feb-28 16:11 +01:00 (CET)
* Fixed: if a versioned exe already exists, move that to its backup folder (bug described in <a href="http://www.ztw3.com/forum/forum_entry.php?id=89057">http://www.ztw3.com/forum/forum_entry.php?id=89057</a>)
ZUpdate-2007-02-27_1739.zip (6.35 Kb) 2007-Feb-27 17:39 +01:00 (CET)
+ Fixed: more differentiation between error messages that are caused by different situations + Added: on failure to find or extract from file specified on command-line, try to download the updates
ZUpdate-2007-02-27_1552.zip (6.14 Kb) 2007-Feb-27 15:52:00 +01:00 (CET)
+ Added: on update, copy all files to "Zeta_v{version}" folder under #ZTHomeZUpdate.zip 2007-Feb-27 12:27:00 +01:00 (CET)
* First public release
Contributors to this page: ian
,
vor0nwe
,
laurent
and
admin
.
Page last modified on Friday 20 of November, 2009 05:50:17 UTC by ian.
Category: ZTreeWin Utilities
