SimpleUpdater — Rev. 10.69 / 2016/06/19

Discuss and share scripts and script files...
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/14

Post by Marco »

Rev. 10.60 is out!
Read the first post and the changelog for more info.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SimpleUpdater - Rev. 10.60 / 2013/03/14

Post by Filehero »

Marco wrote:Rev. 10.60 is out!
Could successfully update to XY 12.20.0208. :)

Note: Did it the bog standard way - with popups, no check for language files etc.


Cheers,
Filehero

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/14

Post by Marco »

Filehero wrote:
Marco wrote:Rev. 10.60 is out!
Could successfully update to XY 12.20.0208. :)

Note: Did it the bog standard way - with popups, no check for language files etc.


Cheers,
Filehero
Good! :D
I remember ( http://www.xyplorer.com/xyfc/viewtopic. ... 050#p78050 ) you build an archive of past XY versions, right? Maybe an additional ini settings containing command line parameters for restarting XY would help you?
The bat command starting XY would then look like this (more or less)

Code: Select all

start "" /separate "<xy>" "/script=Filehero_Archiver"
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: SimpleUpdater - Rev. 10.60 / 2013/03/14

Post by avsfan »

Marco wrote: Good! :D
I remember ( http://www.xyplorer.com/xyfc/viewtopic. ... 050#p78050 ) you build an archive of past XY versions, right? Maybe an additional ini settings containing command line parameters for restarting XY would help you?
The bat command starting XY would then look like this (more or less)

Code: Select all

start "" /separate "<xy>" "/script=Filehero_Archiver"
So it sounds like you're suggesting that the "Filehero_Archiver" script would then rename the XYplorer.zip to include the current version, correct? If I understand the situation correctly, they didn't include the version number in the name because it was somewhat problematic during the download phase, but renaming the zip on restart could be just perfect!

If that's *not* what you were saying, then I'll cast my vote for that functionality so that I can have an archive of old versions! :)

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by Filehero »

Hi,

there is no "Filehero_Archiver" script anymore. :mrgreen:

I've switched to the the standard temporary save-and-delete behaviour some time ago, too much updates....


Cheers,
Filehero

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by Marco »

Filehero wrote:Hi,

there is no "Filehero_Archiver" script anymore. :mrgreen:

I've switched to the the standard temporary save-and-delete behaviour some time ago, too much updates....


Cheers,
Filehero
Gotcha
avsfan wrote:So it sounds like you're suggesting that the "Filehero_Archiver" script would then rename the XYplorer.zip to include the current version, correct? If I understand the situation correctly, they didn't include the version number in the name because it was somewhat problematic during the download phase, but renaming the zip on restart could be just perfect!

If that's *not* what you were saying, then I'll cast my vote for that functionality so that I can have an archive of old versions! :)
Yes, you understood correctly :D
It would be trivial for such a script renaming "XYplorer.zip" to "XYplorer - <curver>.zip" and then backing it up to an archiving folder. That's the raw idea.
Actually the underlying idea comes from the very first new revision of SU. When I trigger XY restart, I simply call it with no command line parameters, and I always wondered if this is a desirable behaviour in case someone called the first instance of XY with some arguments. Since there's no variable that allows me to restart XY with the same command line, I guess adding this customization is the closest and most useful thing.

Just looking for comments/opinions/suggestions so far...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by avsfan »

Marco wrote:
Filehero wrote:Hi,

there is no "Filehero_Archiver" script anymore. :mrgreen:

I've switched to the the standard temporary save-and-delete behaviour some time ago, too much updates....


Cheers,
Filehero
Gotcha
avsfan wrote:So it sounds like you're suggesting that the "Filehero_Archiver" script would then rename the XYplorer.zip to include the current version, correct? If I understand the situation correctly, they didn't include the version number in the name because it was somewhat problematic during the download phase, but renaming the zip on restart could be just perfect!

If that's *not* what you were saying, then I'll cast my vote for that functionality so that I can have an archive of old versions! :)
Yes, you understood correctly :D
It would be trivial for such a script renaming "XYplorer.zip" to "XYplorer - <curver>.zip" and then backing it up to an archiving folder. That's the raw idea.
Actually the underlying idea comes from the very first new revision of SU. When I trigger XY restart, I simply call it with no command line parameters, and I always wondered if this is a desirable behaviour in case someone called the first instance of XY with some arguments. Since there's no variable that allows me to restart XY with the same command line, I guess adding this customization is the closest and most useful thing.

Just looking for comments/opinions/suggestions so far...
I think that's a good plan (though having a variable to store the current command line could be a very useful thing).

[EDITED the below to use a secondary script file]
I modified my updater script file so that when the batch file is written, it now has this line in it

Code: Select all

start "" /separate "<xy>" /script="renameXYzipToCurVersion.xys"
with the "renameXYzipToCurVersion.xys containing the following line:

Code: Select all

renameitem(*_<xyver>.'.zip', <xydata>.'\XYplorer.zip');
and it appears to work ok, (at least testing the command line directly -- there hasn't been an update since I made the change).

The reason I used a separate script file to do the renaming is that I wasn't sure how to handle the quoted parameters for the script in the command line (since I needed to write a literal '<xydata>' and '<xydata>' but still have the '.zip' quoted as well). I'm sure there's a more elegant way to do it, but this seems to work for now... :)

I used to call XY with different command lines to use different ini files, but now that we've got the session manager script, I just use the same ini file all the time...
Last edited by avsfan on 05 Mar 2013 23:18, edited 1 time in total.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by Marco »

Ok, 90% chances that next SU rev will support custom command line upon restart
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by Marco »

avsfan wrote:The reason I used a separate script file to do the renaming is that I wasn't sure how to handle the quoted parameters for the script in the command line (since I needed to write a literal '<xydata>' and '<xydata>' but still have the '.zip' quoted as well).
You did the right move imo.
So far my idea is

Code: Select all

 global $restart_command_line = getkey("RestartCommandLine", "XYSettings", "$ini_path");

Code: Select all

 start "" /separate "<xy>" $restart_command_line
so the additional command line parameters shouldn't be enclosed in quotes, according to start syntax.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.60 / 2013/03/04

Post by Marco »

Dansk - translation added.
Thank you Regmos!!!

Deutsch - translation added.
Thank you tux.!!!

Hrvatski - translation added.
Thank you Borut Maričić!!!

Italiano - translation added.
Thank you Flora!!!
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 65098
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SimpleUpdater - Rev. 10.65 / 2013/03/12

Post by admin »

Wow, I like to see those XY spin offs happening... :appl:

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.65 / 2013/03/12

Post by Marco »

admin wrote:Wow, I like to see those XY spin offs happening... :appl:
Me too :D
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.65 / 2013/03/12

Post by Marco »

Nederlands - translation added.
Thank you Jan Van der Borght!!!

Polski - translation added.
Thank you Karol Kamiński aka fenixproductions!!!
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.65 / 2013/03/12

Post by Marco »

繁體中文 - 臺灣 - translation added.
Thank you Mike Hsiao!!!

简体中文 - translation added.
Thank you Michael Lu!!!

Русский - translation added.
Thank you Дмитрий Федоров!!!

Castellano - translation added.
Thank you Nikou!!!

Français - translation added.
Thank you Marc Giraudou!!!
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

MikeHsiao
Posts: 218
Joined: 10 Feb 2013 13:54

Re: SimpleUpdater - Rev. 10.65 / 2013/03/12

Post by MikeHsiao »

Here is the Chinese Traditional File.
Attachments
ChineseTraditional.ZIP
(1.26 KiB) Downloaded 219 times
My Interior Knowledge is Extraordinaire

Traditional Chinese translator for XYplorer

Post Reply