Page 8 of 8
Re: XYplorer Automatic Updater
Posted: 11 Aug 2012 11:27
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 ;)
Re: XYplorer Automatic Updater
Posted: 11 Aug 2012 16:20
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
Re: XYplorer Automatic Updater
Posted: 07 Sep 2012 21:13
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.
Re: XYplorer Automatic Updater
Posted: 10 Sep 2012 11:01
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
- MANUALLY updated to 11.50.0022
- 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!
Re: XYplorer Automatic Updater
Posted: 10 Sep 2012 11:12
by lukescammell
Tested and confirmed working (not the setup, just the updating of betas) with XYplorer 11.50.0023 released just now (thanks Don

)
Re: XYplorer Automatic Updater
Posted: 10 Sep 2012 20:12
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.