SimpleUpdater

Discuss and share scripts and script files...
Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SimpleUpdater

Post by Filehero »

Now the update is detected.
SimpleUpdater_Alert.gif
SimpleUpdater_Alert.gif (36.31 KiB) Viewed 3842 times
But then a script error comes up.
SimpleUpdater_ScriptError.gif
SimpleUpdater_ScriptError.gif (43.47 KiB) Viewed 3842 times

Cheers,
Filehero

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

Re: SimpleUpdater

Post by serendipity »

Filehero wrote:Now the update is detected.
SimpleUpdater_Alert.gif
But then a script error comes up.
SimpleUpdater_ScriptError.gif

Cheers,
Filehero
yes, just missed one line. See check in 2 minutes.

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

Re: SimpleUpdater

Post by serendipity »

:oops: forgot to add url for official version n the script: grab latest version from first page.

or simply add this in the //Download Official release section of the script.:

Code: Select all

$downloadurl="http://www.xyplorer.com/download/xyplorer_full_noinstall.zip";
edit: removed attachment, get newest version from first page.
Last edited by serendipity on 10 Sep 2012 21:43, edited 2 times in total.

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

Re: SimpleUpdater

Post by Filehero »

serendipity wrote::oops: forgot to add url for official version n the script: grab this:
Fixed it, I'm up to date now!

Did I already say that this is a nice little script? :)


Filehero

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

Re: SimpleUpdater

Post by serendipity »

Filehero wrote:
serendipity wrote::oops: forgot to add url for official version n the script: grab this:
Fixed it, I'm up to date now!

Did I already say that this is a nice little script? :)


Filehero
Thanks! :)

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

Re: SimpleUpdater

Post by Marco »

serendipity wrote::oops: forgot to add url for official version n the script: grab this:
SimpleUpdater.xys
or simply add this in the //Download Official release section of the script.:

Code: Select all

$downloadurl="http://www.xyplorer.com/download/xyplorer_full_noinstall.zip";
Actually, you can *always* use a url in the form of http://www.xyplorer.com/download/xyplor ... nstall.zip to download the latest possible XY build, be it a beta or a new stable/major.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: SimpleUpdater

Post by serendipity »

Marco wrote:
serendipity wrote::oops: forgot to add url for official version n the script: grab this:
SimpleUpdater.xys
or simply add this in the //Download Official release section of the script.:

Code: Select all

$downloadurl="http://www.xyplorer.com/download/xyplorer_full_noinstall.zip";
Actually, you can *always* use a url in the form of http://www.xyplorer.com/download/xyplor ... nstall.zip to download the latest possible XY build, be it a beta or a new stable/major.
True that the latest official release is same as last beta. But i like to grab the one from official site rather than beta club because the version number of XYplorer.exe is not the same for the beta and official version.

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

Re: SimpleUpdater

Post by Filehero »

Serendipity,

care to explain the purpose of the ping-statement? Is it to delay the unzip action?

Code: Select all

run "cmd /c ping -n 5 127.0.0.1 > .....

Thanks,
Filehero

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

Re: SimpleUpdater

Post by serendipity »

Filehero wrote:Serendipity,

care to explain the purpose of the ping-statement? Is it to delay the unzip action?

Code: Select all

run "cmd /c ping -n 5 127.0.0.1 > .....

Thanks,
Filehero
Yes, it pings local host 5 times, I don't know any other way to wait inside command prompt.
I took this line from Jacky's script.
Actually, I already knew it. Just happen to see that Jacky used it too.
Last edited by serendipity on 25 Sep 2012 23:13, edited 1 time in total.

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

Re: SimpleUpdater

Post by Filehero »

serendipity wrote:.., I don't know any other way to wait inside command prompt.
Didn't know that there's no "wait". :shock: Strange this is ....


Thanks,
Filehero

klownboy
Posts: 4407
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: SimpleUpdater

Post by klownboy »

Hi serendipity, Thanks for the input on tweaking SimpleUpdater so that it doesn't save the configuration. Everything works fine.

I was wondering though if the script could be taken a step further such that it grabs the registration number from XYplorer, inputs it in Help / Update Registration Details... and then does a restart. I've been playing around making attempts to do that with not much luck...still a noob, unfortunately. I was able to get the registration number using:

Code: Select all

$v = getkey("Code", "Register", "<xydata>\XYplorer.ini");
and command #725 opens the update registration screen, but I can't input the "key" into the window. The window opens with the cursor on the "name" so we would have to tab into the "key" block and then paste it in, hit enter and restart. Would this or maybe should I ask could this be done using setkey after getkey as oppose to opening the "Update Registration Details..." screen? Any help would be greatly appreciated. I've been looking at the jackie original post (very complex - not simple) for a XYplorer updater http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886 updated recently by drewkeller.
Thanks,
Ken

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

Re: SimpleUpdater

Post by Marco »

klownboy wrote:Hi serendipity, Thanks for the input on tweaking SimpleUpdater so that it doesn't save the configuration. Everything works fine.

I was wondering though if the script could be taken a step further such that it grabs the registration number from XYplorer, inputs it in Help / Update Registration Details... and then does a restart. I've been playing around making attempts to do that with not much luck...still a noob, unfortunately. I was able to get the registration number using:

Code: Select all

$v = getkey("Code", "Register", "<xydata>\XYplorer.ini");
and command #725 opens the update registration screen, but I can't input the "key" into the window. The window opens with the cursor on the "name" so we would have to tab into the "key" block and then paste it in, hit enter and restart. Would this or maybe should I ask could this be done using setkey after getkey as oppose to opening the "Update Registration Details..." screen? Any help would be greatly appreciated. I've been looking at the jackie original post (very complex - not simple) for a XYplorer updater http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886 updated recently by drewkeller.
Thanks,
Ken
What are you trying to accomplish exactly?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: SimpleUpdater

Post by serendipity »

klownboy wrote:Hi serendipity, Thanks for the input on tweaking SimpleUpdater so that it doesn't save the configuration. Everything works fine.

I was wondering though if the script could be taken a step further such that it grabs the registration number from XYplorer, inputs it in Help / Update Registration Details... and then does a restart. I've been playing around making attempts to do that with not much luck...still a noob, unfortunately. I was able to get the registration number using:

Code: Select all

$v = getkey("Code", "Register", "<xydata>\XYplorer.ini");
and command #725 opens the update registration screen, but I can't input the "key" into the window. The window opens with the cursor on the "name" so we would have to tab into the "key" block and then paste it in, hit enter and restart. Would this or maybe should I ask could this be done using setkey after getkey as oppose to opening the "Update Registration Details..." screen? Any help would be greatly appreciated. I've been looking at the jackie original post (very complex - not simple) for a XYplorer updater http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886 updated recently by drewkeller.
Thanks,
Ken
I don't understand, you update registration details before every update?

klownboy
Posts: 4407
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: SimpleUpdater

Post by klownboy »

Hey again serendipity, "after" an update, I get the following or something similar in the title bar, "XYplorer v10.60 updated from v10.50.0023". Isn't that the case with everyone's Titlebar after an update whether it's a beta or not? I then have to go into the Help / Update Registration Details and input the serial number "key" and do a restart, and then the title bar changes to "XYplorer v11.60". If you go back to my first post, I think this is why I was confused as to why your script stopped before this happens. It is a bit of a pain since I have to retrieve the "key" from the XYplorer.ini file. I have a Pro Lifetime license. Is there something in the configuration or a setting / tweak that that I'm not aware of that would get me out of having to do these steps everytime I do an update? Is your key automatically input so you don't have to go through this or does that title message change (to simply "XYplorer v10.60" depending on your settings) automatically when you restart?

Thanks,
Ken

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: SimpleUpdater

Post by j_c_hallgren »

klownboy wrote: I get the following or something similar in the title bar, "XYplorer v10.60 updated from v10.50.0023". Isn't that the case with everyone's Titlebar after an update whether it's a beta or not? I then have to go into the Help / Update Registration Details and input the serial number "key" and do a restart, and then the title bar changes to "XYplorer v11.60".
:roll: Does that "updated from x.xx.xxxx" part of title bar bother you THAT much? I barely even notice it and it's gone the next time you start XY anyway so...
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.

Post Reply