---------------------------------------------------------------------------------------------------
UPDATE: Latest info on September 26, 2010 :
The latest version of the script is 0.01.0023 and can be downloaded from this post, right below. Requires XY 7.90.0261 and common-jacky 0.01.0006 I'm putting it here so it's available again, should people be interested, and also because since Don changed the format of the changelog a bit, updates weren't found anymore, and that's been fixed.
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on February 9, 2009 :
The latest version of the script is 0.01.0020 and can be downloaded from here. Requires XY 7.90.0075 and common-jacky 0.01.0006
"Edit Configuration File" now done directly inside XY
Default theme on XY forum was changed, and broke the way the changelog was obtained, fixed.
XYAU is now treated just like any (other) scripts when it comes to checking for its updates -- i.e. no more setting AutoUpdate
Now when checking for updates of scripts & XY is all done at once, and then all results are shown on one single window. Changelog for scripts are also featured, and you chose what to update simply by checking the available updates!
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on January 18, 2009 :
The latest version of the script is 0.01.0016 and can be downloaded from here. Requires XY 7.90.0030 and common-jacky 0.01.0004
Remove ZIP files of old versions didn't work since v0.01.0007 (!), fixed
On occasions you could have a recursion warning showing up (when checking for BETA, after the changelog was shown), fixed.
Check for Official: now when a new official version is available, the highlight of main new features (from website) is shown when asked whether or not to do the update
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on January 14, 2009 :
The latest version of the script is 0.01.0014 and can be downloaded from here. Requires XY 7.90.0030 and common-jacky 0.01.0003
BETA updates: now the question/buttons to update or not are always visible, evne with long changelog
On first use (no config), when the config screen showed up you could not (fully) set things and continue. Which could have had the configuration window show a second twice, and the check for updates be done ignoring the beta/official choice or without all settings set, fixed.
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on January 9, 2009 :
The latest version of the script is 0.01.0012 and can be downloaded from here. Requires XY 7.90.0030 and common-jacky 0.01.0002
Reorganized menu (moved items, hide some as well)
"Extract a previous version" now waits for extraction to be over
Configuration now done with a nice single HTML driven window
Now uses (or can use) common settings (through common_jacky) to get config for extraction
When download folder contained a version number, features to extract and revert back to previous version didn't work, menus were wrong, fixed.
Changelog of XY now shown in HTML format, and comes with button a button to do the update right there (one less popup!)
Tip: If you like the good old text-way better, you can have it back by adding under [Settings] in the INI file: ChangelogText=1
When checking for official version, extraction could fail due to a wrong ZIP filename ("no archive"), fixed.
Asking to check for updates of scripts but not XYAU would result in checking for no scripts at all, only XY; fixed.
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on December 26, 2008 :
The latest version of the script is 0.01.0011 and can be downloaded from here. Requires XY 7.80.0032
There's a new dependency, in form of an additional script file (common-jacky.xys) that you can download from here. This new script will allow different scripts to use the same "features" without having to pack all the same codes, etc It's a "library", can't be loaded on its own (I mean it can be, but it won't do nothing ).
There's been different little changes and fixes, as well as the introduction of "hidden" items, so you need to click on "Show Full Menu" to see them. For example, the feature "Get changelog" has been hidden, and so is the new "Edit Configuration File" (just opens the INI file)
The major addition, related to our common-jacky mentioned above, is of course the possibility to use XYAU (this script! ) to check for updates of other scripts. Since I do work on a few scripts of my own that needs updates, since I use them on different computers or share them with other people, I wanted to quick & easy way to check for & update them all at once, so what better that using this script!
As of this writing, XYUA can check for updates of itself, common-jacky and MiniTrees (as well as XY, of course!) That means it can check for updates for everything when you click "Check for updates", and it can download the new script file when a new version is available. You can also just install support for those scripts in XYAU without enabling the automatic check for updates, then there's a menu "Check for updates of additional scripts..." with both the possibility to "Check for updates of all scripts..." as well as checking for individual ones.
Technically, support for any script could be added (given a few rules are followed), but I'm already thinking of ways to automate all of that even more and make it more accessible, to allow everyone to have their scripts' updates handled through XYAU easily... stay tuned!
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on December 5, 2008 :
The latest version of the script is 0.01.0008 and still available from here. Requires XY 7.80.0032
Now when entering the path to the unrar.exe, the script will auto-convert it to a relative path if possible and ask you how to save it (full or relative)
Script changelog can be shown
Relative syntax ?:\path\to\unrar.exe did not work when extracting old versions of XY, fixed.
:arrow:Using "Check for Updates" with check for auto-update first, when a new version of the script was found, it was downloaded but the old version (loaded in memory) would do the XY-check/download procedure. Now, the freshly downloaded new version of the script will.
Plus a few internal changes, like dealing with recursion which now is done using setting AllowRecursion, and thus the script should work just fine (and without warnings) even when recursion checked is still enabled.
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on November 6, 2008 :
The latest version of the script is 0.01.0007 and still available from here. Requires XY 7.70.0010
It now includes a new feature : Extract a previous version. Like for the revert back option, it will list all previous versions available and in one click create a new folder (XYplorer vX.XX.XXXX) in the current location and extract said version of XY in the folder.
It will also create a new XYplorer.ini file with your registration info (taken from <xydata>\XYplorer.ini). So if you ever want to test something with an older version it couldn't be easier now!
---------------------------------------------------------------------------------------------------
UPDATE: Latest info on November 1st, 2008 :
The latest version of the script (still available from here) requires XY 7.70.0010 and uses global variables now, no more tmp.ini !
There were a few minor changes/fixes, including a test that recursion checker is off, because otherwise you might get lots of warnings using the script (especially when checking for BETA versions). This check is only done once of course.
For the record, a version compatible with the last official version (7.70.0000) is available from here
---------------------------------------------------------------------------------------------------
UPDATE: The original script has been modified since that first post, here's the latest :
No more copy/paste, you can now simply download the XYS file from here.
It uses latest syntax changes that aren't supported in previous versions, now requires XY 7.60.0009 in order to work.
I've added a couple of things since last time, starting with function to Revert to a previous version. This will simply do the same thing as always, only without downloading anything but using one of the previously downloaded ZIP file. That way, if for some reason you ever want to revert back to an old version, it will be done in a couple of clicks just as easily as when updating to the latest version (Been doing that these past couple of days, pretty cool)
Also, since ZIP files are added and added all the time, added a little thing to quickly remove a bunch of them easily as well
Because I intend to give this script to a few people (XY users) I know, and they don't all use latest beta, I added an option to check for the latest official version as well. So now it supports updating both to latest beta, or latest official version (no changelog there).
In the same idea, cause I didn't want to explain how to update the script file every time they'd need to update it, I've also added a "check for update" function for the script itself. If everything works nicely, next time I update it, using this feature you'll be able to update to the latest version of the script in two clicks as well
Original post below:
---------------------------------------------------------------------------------------------------
So this is my own script to update XY, I've been using it for a little while now (though it's been modified/improved over time...) and I think it works just fine. At least I haven't had any problem with it -- but you're free to to test it at least once on a copy of your installation, just to be sure. (Plus I won't be responsible if your PC explodes or anything... )
How it works : you start it, it will either tell you that you have the latest BETA, or show you the changelog for all versions after the one you're running. Then, you'll be asked if you want to update or not, if so it will all be done automatically: downloading, extracting, restarting.
This is just an XY Script File, and it doesn't require anything else (no bat, exe, etc) but one thing : an application to do the unzipping (e.g. WinRAR, 7z, etc).
Once you'll have copy/pasted the script into your own "XYplorer Automatic Updater.xys" (tip: Ctrl+Alt+V to Paste Text Into New File) you're almost good to go. To use it, you simply load the file and click on "Check for Updates..." or directly load the script "CheckForUpdates", so if you did copy/paste it as "XYplorer Automatic Updater.xys" in your Script folder, this will do: ::load "XYplorer Automatic Updater", "CheckForUpdates";
The first time you use it, you'll be asked a couple of questions : name, age, ... err, no, I mean- first, the application to use to do the unzipping (you can browse to it, if you don't you should still use a full path/name to the exe file, i.e. not "WinRAR" even if it is a registered app). Then, the arguments to use/send on command line.
When used, the script will start your unzipper with one goal : unzip the freshly downloaded ZIP file over your current installation. This means you'll want to unzip to your current <xypath> obviously, and you probably want to remove any confirmation of overwriting. For the ZIP file, simply use %zip% and it'll be replaced by the full path/name to the file; as destination, you shall use <xypath>\ (note the required backslash). You'll want to "quote" them if needed (i.e. spaces are involved).
For example, here's what I use with WinRAR:
Code: Select all
e "%zip%" XYplorer.exe XYplorer.hlp XYplorer.cnt TipOfTheDay.htm LicenseXY.txt ReadmeXY.txt "<xypath>\" -o+
Lastly, you'll be asked for the folder where to download the ZIP. The way it works (though you are obviously free to change that) is that it will download the file xyplorer_X.XX_beta_noinstall.zip into that folder, but the file will be renamed to xyplorer_X.XX.XXXX_noinstall.zip which means that you should be able to revert back to any past versions quite easily (should you want to); and also you might wanna do some cleaning in that folder every once in a while.
Okey dokey, here's the beast :
(...)
A few more things :
- I'm a bit late on XYwiki so it's not there yet, but you should know that XY's readurl (& download) do send IE cookies, and to check if there's a new BETA / get the changelog this script opens a page from this forum. Meaning: if you use IE as browser (or a shell) & have an auto-loggin cookie, every time you use this script you'll be logged on, and so if you don't actually visit too it will screw up you unread topics !!
EDIT: Okay, just added the new command internetflags so now (v7.60.0002 onwards) the cookies won't be send anymore, no more worries!
- Yes it uses a tmp.ini since there are no global vars, but the file is removed when done. If for some reason you already have a tmp.ini you don't want to see disappear, I suggest a quick search&replace
EDIT: Not the case anymore, thanks to global vars!
- When restarting XY, I use #192; to close, which means that your settings will be saved ONLY if you have "save settings on exit" enabled, otherwise no save.
- For curious people, the little self-ping trick used here is just to wait and "ensure" XY.exe is done, so when extracting the new EXE there aren't any problem...
That's all folks!