Page 2 of 9

Re: SimpleUpdater

Posted: 10 Sep 2012 20:13
by Filehero
Now the update is detected.
SimpleUpdater_Alert.gif
SimpleUpdater_Alert.gif (36.31 KiB) Viewed 3847 times
But then a script error comes up.
SimpleUpdater_ScriptError.gif
SimpleUpdater_ScriptError.gif (43.47 KiB) Viewed 3847 times

Cheers,
Filehero

Re: SimpleUpdater

Posted: 10 Sep 2012 20:16
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.

Re: SimpleUpdater

Posted: 10 Sep 2012 20:18
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.

Re: SimpleUpdater

Posted: 10 Sep 2012 20:21
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

Re: SimpleUpdater

Posted: 10 Sep 2012 20:23
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! :)

Re: SimpleUpdater

Posted: 10 Sep 2012 20:39
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.

Re: SimpleUpdater

Posted: 10 Sep 2012 20:47
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.

Re: SimpleUpdater

Posted: 10 Sep 2012 20:49
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

Re: SimpleUpdater

Posted: 10 Sep 2012 21:06
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.

Re: SimpleUpdater

Posted: 10 Sep 2012 21:14
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

Re: SimpleUpdater

Posted: 11 Sep 2012 16:11
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

Re: SimpleUpdater

Posted: 11 Sep 2012 16:20
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?

Re: SimpleUpdater

Posted: 11 Sep 2012 16:34
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?

Re: SimpleUpdater

Posted: 11 Sep 2012 17:10
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

Re: SimpleUpdater

Posted: 11 Sep 2012 17:19
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...