Kodi Community Forum
[WINDOWS] Automatic Update Client for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: [WINDOWS] Automatic Update Client for XBMC (/showthread.php?tid=48517)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


- kay.one - 2009-04-20

fidoboy Wrote:I've the windows firewall, but it doesn't even notify about any connection, so i think that the program is not trying to connect and there is another problem in the code...

regards,

did you try to ping danielpatton.com?


- fidoboy - 2009-04-20

yes, it works fine... The extrange thing is that when i open the app it doesn't ask to open the windows firewall, so i think that it isn't trying to connect...

can't you add a message in the app log to get more info about what's happening?

regards,


- kay.one - 2009-04-20

fidoboy Wrote:yes, it works fine... The extrange thing is that when i open the app it doesn't ask to open the windows firewall, so i think that it isn't trying to connect...

regards,

you should only get the firewall warning when the app is trying to listen for incoming connections, not initiating out going. so you shouldn't get a warning,

can you paste the output of your ping windows here?


- fidoboy - 2009-04-20

Sure, here it's:

C:\Documents and Settings\FidoBoy>ping danielpatton.com

Haciendo ping a danielpatton.com [74.53.28.18] con 32 bytes de datos:

Respuesta desde 74.53.28.18: bytes=32 tiempo=197ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=199ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=198ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=200ms TTL=46

Estadísticas de ping para 74.53.28.18:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 197ms, Máximo = 200ms, Media = 198ms

(texts are in spanish language, but you can get the basics...)


- CrashX - 2009-04-20

Will post an exe for you try tonight when I get home .. It uses Win32API Bits to download the file .. This is used by windows update to download updates ..


what i really would like to see on this app - azido - 2009-04-21

..is an option to step back to the previous installed version of xbmc in case something is not working anymore in the updated one.

i.e. i've heard about users of a 3rd-party remote configuration program of which the generated keys for the remote no longer get a response in xbmc babylon. in this case it would be useful to just roll back to the previous working version.


- mindweaver - 2009-04-21

+1

A rollback function to the latest working (installed) build would be great Smile


- CrashX - 2009-04-21

fidoboy Wrote:Sure, here it's:

C:\Documents and Settings\FidoBoy>ping danielpatton.com

Haciendo ping a danielpatton.com [74.53.28.18] con 32 bytes de datos:

Respuesta desde 74.53.28.18: bytes=32 tiempo=197ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=199ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=198ms TTL=46
Respuesta desde 74.53.28.18: bytes=32 tiempo=200ms TTL=46

Estadísticas de ping para 74.53.28.18:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 197ms, Máximo = 200ms, Media = 198ms

(texts are in spanish language, but you can get the basics...)

I have uploaded a DownloadMain.zip to http://www.mediafire.com/?sharekey=e61ef9fbe38c54a46e7203eb87368129e04e75f6e8ebb871 .... Please extract it and run DownloadMainTest.bat ..

It saves the file it downloads to c:\test.zip ..


- fidoboy - 2009-04-22

Here is the result:

Code:
C:\Documents and Settings\FidoBoy\Escritorio\XBMC Update>DownloadMain "http://dan
ielpatton.com/user-accounts/XBMC-updates/XBMC-Rev19569.zip" c:\test.zip
Transfering 4222058 of 100
Transfering 4222058 of 100
Transfering 4222058 of 100
Transfering 4222058 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100
Transfering 0 of 100

The line 'Transfering 0 of 100' is being shown again and again forever, i've been wating more than 10 minutes and then i've aborted the process. I've executed the bat a second time, and this time i've noticed that it creates a 50,5 Mb tmp file in my C: drive but again it's never finished...


- CrashX - 2009-04-22

By the looks of the result, you are able to connect fine and is in the process of downloading the file ..

Try testing after reboot .. After a minute or so it should change from Transfering 0 of 100 to something valid ... ie .. 5 of 100 ..

Rename the temp file to zip file and open it ... It shouldn't open ... That file is temporay file with the same size as the download but gets populated with actually data while it is downloading ..

Does Windows Update work on your system ?


- Darkside138 - 2009-04-22

Just wanted to say thanks for this program.

This is a large step in the right direction of an automated HTPC!!

Thanks for your time and effort in making this! Big Grin


- fidoboy - 2009-04-22

CrashX Wrote:By the looks of the result, you are able to connect fine and is in the process of downloading the file ..

Try testing after reboot .. After a minute or so it should change from Transfering 0 of 100 to something valid ... ie .. 5 of 100 ..

Rename the temp file to zip file and open it ... It shouldn't open ... That file is temporay file with the same size as the download but gets populated with actually data while it is downloading ..

Does Windows Update work on your system ?

Windows update works perfectly here... The file is downloaded but when it's finished it's not being renamed into zip. The 0 doesn't change, i get 0 of 100 all the time...

regards


- CrashX - 2009-04-22

fidoboy Wrote:Windows update works perfectly here... The file is downloaded but when it's finished it's not being renamed into zip. The 0 doesn't change, i get 0 of 100 all the time...

regards

Are you referring to dummy temp file in C:\ ? As I said before that contents aren't populated with real data until download is complete .. Program will exit ..

You can test this by renaming the temp file to a zip file and extract the contents .. it will give an error ...


- fidoboy - 2009-04-22

CrashX Wrote:Are you referring to dummy temp file in C:\ ? As I said before that contents aren't populated with real data until download is complete .. Program will exit ..

You can test this by renaming the temp file to a zip file and extract the contents .. it will give an error ...

Well, after many time running, now it shows 8 of 100....


- hoborg - 2009-04-24

Works.
Awesome work man!
Image

EDIT:
I found one problem.
I added autoupdater to run on startup.
Updater are launched and start do download new version, but my HTPC go in to S3 before update are downloaded (S3 is launched after 3min. of inactivity).
Is it possible to modify updater to prevent system go into stanby before update is done?