serendipity wrote:Wow Jacky!!! I just tried your new script and its incredible. Thanks for this nice script.
XYplorer Automatic Updater
Re: XYplorer Automatic Updater
Proud XYplorer Fanatic
Re: XYplorer Automatic Updater
Jacky, let me start by saying this is a very nice piece of work -- thank you!!UPDATE: Latest info on January 9, 2009:
I did want to report a low-priority bug, though. It's a tiny one. :)
When you run XYAU for the first time you won't have any settings, of course. If you run CheckForUpdates the first time you use XYAU (i.e. you don't configure it first), you'll get prompted for your settings. If you answer just the first question and click "Ok", you will get the settings configuration screen again. If you then answer all the questions after being prompted the second time, CheckForUpdates will proceed, but it won't reflect the settings you've entered (such as checking beta vs. official), even though your settings are saved in the .INI files. If you run XYAU again it works fine. Or if you answered all the questions the first time you get the configuration prompt, the first update will work fine.
I haven't dug into the script much to figure out why this happens, but I'm guessing that by answering just the first question about download path that I was able to fall through some bit of code that makes sure the configuration is set in one place but not another. I looked at the script briefly, but the issue didn't jump out at me. That could be because I'm not used to .xyz syntax enough yet, though I suspect the issue is an indirect behavior related to how settings are read in from various functions (not an obvious logic problem of failing to check that settings are initialized in ensureSettings for example).
Anyway, it's a very minor issue and the script otherwise works great (thanks again!), but I thought I'd pass this along anyway. :) I may dig into this myself later if you're busy. :)
Re: XYplorer Automatic Updater
You're welcome, glad you guys like/use ita1l0s2k9 wrote:Jacky, let me start by saying this is a very nice piece of work -- thank you!!
Oh yeah, I had noticed that during my tests at one point, but it kinda slipped my mind...a1l0s2k9 wrote:I did want to report a low-priority bug, though. It's a tiny one.
Actually, that was because when called, _ensureSetting would just show the config window and that's it, no check after that. So in fact you could also simply click Ok without specifying anything at all, and have the same results. What happened was that after that the script to check whether for beta or official was called, and it does also call _ensureSetting hence the second time the config window would pop up, and why the beta/official setting was ignored (it had already been "taken into account" after the first time the config window was closed).
I've just changed that, now as long as you have missing settings, _ensureSettings keep showing the config window over & over again -- unless you hit Cancel/Close of course, but that also cancels the whole thing. That way all your settings should be taken into account, as expected.
As of now:
Proud XYplorer Fanatic
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: XYplorer Automatic Updater
Simple request: Since this requires "CJ", could you have the link/URL to D/L for it embedded in above (as you do for this script) so that I/we can pull both of them from this thread instead of having to get that one via separate thread?jacky wrote:The latest version of the script is 0.01.0014 and can be downloaded from here. Requires XY 7.90.0030 and CJ 0.01.0003
Especially useful when the CJ vers needed chgs, but nice in all cases...Thanks!
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
Re: XYplorer Automatic Updater
hmm.. Okay, good idea, I'll add links to the topic about common-jacky, that way one can easily see what it is/download it as well yes.j_c_hallgren wrote:Simple request: Since this requires "CJ", could you have the link/URL to D/L for it embedded in above (as you do for this script) so that I/we can pull both of them from this thread instead of having to get that one via separate thread?
Especially useful when the CJ vers needed chgs, but nice in all cases...Thanks!
By the way if you use this script, you can of course have it check/download updates of itself & common-jacky as well, so you don't have to do it manually each time
Proud XYplorer Fanatic
-
drewkeller
- Posts: 33
- Joined: 01 Nov 2008 05:29
Re: XYplorer Automatic Updater
Hmmm. In case anyone else runs into this... The updater v0.01.0015 requires CJ v0.01.0004 which doesn't seem to be available for download yet. I edited CJ .0003 and changed it's version number to .0004 and ran the updater again. It worked for me once I did that.
Re: XYplorer Automatic Updater
hmm... yes I was a little late updating things over here (sorry!drewkeller wrote:Hmmm. In case anyone else runs into this... The updater v0.01.0015 requires CJ v0.01.0004 which doesn't seem to be available for download yet. I edited CJ .0003 and changed it's version number to .0004 and ran the updater again. It worked for me once I did that.
Proud XYplorer Fanatic
-
drewkeller
- Posts: 33
- Joined: 01 Nov 2008 05:29
Re: XYplorer Automatic Updater
I think the problem was, XYAU downloaded the new version of itself, which requires the updated CJ, but since I didn't have the updated CJ, it was a no-go. Or else it downloaded CJ, but it was still the old version and therefore still a no-go. I got the message that CJ was out of date twice and then the abort message.but checking for updates of common-jacky with XYAU should have downloaded the latest version (0004).
I could not figure out a way to get the new CJ, so I faked it and all was smiles.
Re: XYplorer Automatic Updater
Proud XYplorer Fanatic
-
lukescammell
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: XYplorer Automatic Updater
Is it just me, or is this script broken with the newer releases?
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: XYplorer Automatic Updater
No it worked even today for me. Few betas back it did not work, so i deleted the old updater and downloaded updater and common-jacky again. Maybe Jacky updated it secretly.lukescammell wrote:Is it just me, or is this script broken with the newer releases?
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: XYplorer Automatic Updater
Maybe somebody already mentioned this, but when you download common-jacky it saves as common-jacky.htm. Change the htm extension to xys and the updater should work normally.
Re: XYplorer Automatic Updater
Nope, didn't do any (secret) updates lately. But I've heard of some troubles indeed, and I think it was due to a bug in XY for a while. If that's what I've heard of, you were having XYAU's menu to popup over & over again or something, and that was because or a line such as "sub _check_supported;" which XY turned into "sub 1;" (because of suppORted) hence the mess.serendipity wrote:No it worked even today for me. Few betas back it did not work, so i deleted the old updater and downloaded updater and common-jacky again. Maybe Jacky updated it secretly.lukescammell wrote:Is it just me, or is this script broken with the newer releases?
Only thing to fix that was to update to a newer XY (well, or revert back to an older one
hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xysserendipity wrote:Maybe somebody already mentioned this, but when you download common-jacky it saves as common-jacky.htm. Change the htm extension to xys and the updater should work normally.
Proud XYplorer Fanatic
Re: XYplorer Automatic Updater
Happens to me too, but only in Opera (9.64):jacky wrote:hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xysserendipity wrote:Maybe somebody already mentioned this, but when you download common-jacky it saves as common-jacky.htm. Change the htm extension to xys and the updater should work normally.

In IE it's downloaded correctly as .xys. Don't know why Opera thinks it's a .htm file...
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: XYplorer Automatic Updater
Oh yes, thats right! i never thought it could be a browser thing.Pagat wrote:Happens to me too, but only in Opera (9.64):jacky wrote:hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xysserendipity wrote:Maybe somebody already mentioned this, but when you download common-jacky it saves as common-jacky.htm. Change the htm extension to xys and the updater should work normally.
In IE it's downloaded correctly as .xys. Don't know why Opera thinks it's a .htm file...
XYplorer Beta Club