XYplorer Automatic Updater

Discuss and share scripts and script files...
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

serendipity wrote:Wow Jacky!!! I just tried your new script and its incredible. Thanks for this nice script.
:D Thanks, glad you like it! I'm liking it myself very much as well 8)
Proud XYplorer Fanatic

a1l0s2k9
Posts: 47
Joined: 31 Dec 2008 00:09

Re: XYplorer Automatic Updater

Post by a1l0s2k9 »

UPDATE: Latest info on January 9, 2009:
Jacky, let me start by saying this is a very nice piece of work -- thank you!!

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. :)

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

a1l0s2k9 wrote:Jacky, let me start by saying this is a very nice piece of work -- thank you!!
You're welcome, glad you guys like/use it :)
a1l0s2k9 wrote:I did want to report a low-priority bug, though. It's a tiny one. :)
Oh yeah, I had noticed that during my tests at one point, but it kinda slipped my mind... :roll: Thanks.
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:

:arrow: 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

:arrow: (0.01.0013) BETA updates: now the question/buttons to update or not are always visible, evne with long changelog

:arrow: 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.
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

Post by j_c_hallgren »

jacky wrote::arrow: 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
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!
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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

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!
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.

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

Post by drewkeller »

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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

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.
hmm... yes I was a little late updating things over here (sorry! :oops:), but checking for updates of common-jacky with XYAU should have downloaded the latest version (0004). Anyways, I've updated the posts in here as well, so it should all be fine now :)


:arrow: 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

:arrow: Remove ZIP files of old versions didn't work since v0.01.0007 (!), fixed

:arrow: On occasions you could have a recursion warning showing up (when checking for BETA, after the changelog was shown), fixed.

:arrow: 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
Proud XYplorer Fanatic

drewkeller
Posts: 33
Joined: 01 Nov 2008 05:29

Re: XYplorer Automatic Updater

Post by drewkeller »

but checking for updates of common-jacky with XYAU should have downloaded the latest version (0004).
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.

I could not figure out a way to get the new CJ, so I faked it and all was smiles.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

:arrow: 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

:arrow: "Edit Configuration File" now done directly inside XY

:arrow: Default theme on XY forum was changed, and broke the way the changelog was obtained, fixed.

:arrow: XYAU is now treated just like any (other) scripts when it comes to checking for its updates -- i.e. no more setting AutoUpdate

:arrow: 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!
Proud XYplorer Fanatic

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: XYplorer Automatic Updater

Post by lukescammell »

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…)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: XYplorer Automatic Updater

Post by serendipity »

lukescammell wrote:Is it just me, or is this script broken with the newer releases?
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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: XYplorer Automatic Updater

Post by serendipity »

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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer Automatic Updater

Post by jacky »

serendipity wrote:
lukescammell wrote:Is it just me, or is this script broken with the newer releases?
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.
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.
Only thing to fix that was to update to a newer XY (well, or revert back to an older one ;))
serendipity 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.
hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xys :?
Proud XYplorer Fanatic

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: XYplorer Automatic Updater

Post by Pagat »

jacky wrote:
serendipity 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.
hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xys :?
Happens to me too, but only in Opera (9.64):

Image

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

Post by serendipity »

Pagat wrote:
jacky wrote:
serendipity 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.
hmm... when does that happen ? I just tried again and I am asked to save a file common-jacky.xys :?
Happens to me too, but only in Opera (9.64):

Image

In IE it's downloaded correctly as .xys. Don't know why Opera thinks it's a .htm file...
Oh yes, thats right! i never thought it could be a browser thing.

Post Reply