XYplorer Automatic Updater

Discuss and share scripts and script files...
lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: XYplorer Automatic Updater

Post by lukescammell »

Drew, any chance you could post what you've done in some "

Code: Select all

" tags?

TheQwerty, go on, show me what you're working on ;)
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

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

Re: XYplorer Automatic Updater

Post by drewkeller »

if you mean posting the whole script, there's two files, each one around 1000 lines. I think that's a bit much for a forum. A zip file out to work though.

I imagine a similar search and replace method will be needed for other commands/functions to get the script working again. I just don't know XY scripting enough to do it.

Otherwise, Notepad2-mod can be found here: http://code.google.com/p/notepad2-mod/
Press Ctrl-H to bring up the search dialog and enter the info shown in the screenshot.
For copy/pasting

Code: Select all

// search
^(\s*)getkey\s(.*),\s*(.*),\s*(.*),\s*(.*);$
// replace
\1\2 = getkey(\3, \4, \5);
searchreplace.png
searchreplace.png (21.58 KiB) Viewed 2226 times
Attachments
XYplorer Automatic Updater.zip
(25.74 KiB) Downloaded 177 times

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

Re: XYplorer Automatic Updater

Post by drewkeller »

Good news: I got this working (for me anyway).

I did similar replacements for readurl, regexreplace, strpos, substr. Of course, the modified script will not work on the older XYplorer versions that don't recognize the newer syntax of these functions.

I also did the changes for recognizing major versions with two digits

I even managed to convert the old extract/delete methods that opened/closed tabs to get a file list to use the report method. So the reverting, extracting and cleaning functions work.

At times, "invalid script" flashes in XY's status bar. I think it's due to the UnRAR settings script in common-jacky looking for an INI file that I don't have.
Attachments
XYplorer Automatic Updater.zip
(25.7 KiB) Downloaded 179 times

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

Re: XYplorer Automatic Updater

Post by lukescammell »

Thanks Drew!

I can at least partially confirm this as working as well, after a little bit of messing around. Although the real test will be when a new, new beta shows up ;)
  1. MANUALLY updated to 11.50.0022
  2. Used my previous .ini file

Code: Select all

[Settings]
DownloadPath=.\_installs
Beta=1
CommonJacky=1
CommonSettings=1
[Scripts]
Installed=,XYplorer Automatic Updater,common-jacky
common-jacky=0
XYplorer Automatic Updater=0
[CommonJacky]
UnRAR=..\7-ZipPortable\App\7-Zip\7z.exe
UnRAR_Args=x "%zip%" -aoa -o"%dest%"
UnRAR_Use=4
I'm not sure the setup creation is working right now – try removing your ini and running the script, it'll create a new ini but not ask you for any options. But if the rest of it works (tomorrow) then I'm not sure I entirely care at this point. Thanks again!
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

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

Re: XYplorer Automatic Updater

Post by lukescammell »

Tested and confirmed working (not the setup, just the updating of betas) with XYplorer 11.50.0023 released just now (thanks Don ;) )
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

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

Re: XYplorer Automatic Updater

Post by drewkeller »

I did not try to do anything with the configuration, so that is likely not quite working. I also noticed that you have to have the folder present (where zips are downloaded to) or the script will error out.

Post Reply