[WINDOWS] Automatic Update Client for XBMC

  Thread Rating:
  • 3 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kay.one Offline
Senior Member
Posts: 156
Joined: Dec 2006
Reputation: 3
Post: #31
CrashX Wrote:Kricker:-

To avoid killing xbmc while someone is in the middle of watching a movie .. I presume that XBMC Auto Updater runs in the background and updates xbmc without any user input ..

I'm gonna give this a try, but don't think it would work, if any of the files in XBMC are locked the update would fail. unless xbmc loads EVERY SINGLE file into memory and releases the lock on the files.

I'll give it a try.

one thing i was thinking of is to skip the update if the xbmc is reported to be playing back media, i guess i could get that from evenhost or the api.

if someone could provide more info into figuring out if xbmc is playing back media it would be great.
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #32
kay.one Wrote:I'm gonna give this a try, but don't think it would work, if any of the files in XBMC are locked the update would fail. unless xbmc loads EVERY SINGLE file into memory and releases the lock on the files.

I'll give it a try.

one thing i was thinking of is to skip the update if the xbmc is reported to be playing back media, i guess i could get that from evenhost or the api.

if someone could provide more info into figuring out if xbmc is playing back media it would be great.
I was about to run a test myself.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
quake101 Offline
Senior Member
Posts: 102
Joined: Nov 2008
Reputation: 11
Post: #33
I have a feeling this app is going to progress very quickly. (hints why I asked if it can update itself) With that said, I would think making this program have an auto update feature would be high up on the list.

I also really like the idea of it auto updating XBMC at XX time if XBMC is not playing a video.

You guys have done a great job so far and I plan on running this app on my htpc. Smile Thanks!
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #34
There are quite a few files that are locked while XBMC is running, so I don't think a "live" update is really possible.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #35
How about this for an idea. Instead of exclusively being used for auto install how about an option for auto download and inform that an install is ready via a local RSS feed.


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
CrashX Offline
Posting Freak
Posts: 1,164
Joined: Jan 2009
Reputation: 2
Post: #36
kay.one Wrote:I'm gonna give this a try, but don't think it would work, if any of the files in XBMC are locked the update would fail. unless xbmc loads EVERY SINGLE file into memory and releases the lock on the files.

I'll give it a try.

one thing i was thinking of is to skip the update if the xbmc is reported to be playing back media, i guess i could get that from evenhost or the api.

if someone could provide more info into figuring out if xbmc is playing back media it would be great.

File is locked by OS, hence that is why you can overwrite but you can rename the locked file ... This is true for any executable that is running ..

You have to actually monitor every file from the update ( ie DLL ) and check if it has file access issue .. In that case rename it and then replace it ...
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #37
CrashX Wrote:File is locked by OS, hence that is why you can overwrite but you can rename the locked file ... This is true for any executable that is running ..

You have to actually monitor every file from the update ( ie DLL ) and check if it has file access issue .. In that case rename it and then replace it ...
There are quite a few locked files, I guess it can be done, but there are going to be a few files that need to be renamed and then replaced.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
kay.one Offline
Senior Member
Posts: 156
Joined: Dec 2006
Reputation: 3
Post: #38
CrashX Wrote:File is locked by OS, hence that is why you can overwrite but you can rename the locked file ... This is true for any executable that is running ..

You have to actually monitor every file from the update ( ie DLL ) and check if it has file access issue .. In that case rename it and then replace it ...

i'm not sure if i understand correctly, but if the files are locked you can't even rename them , unless i'm missing something here
find quote
flamez Offline
Member
Posts: 92
Joined: Jul 2006
Reputation: 0
Thumbs Up   
Post: #39
Just wanted to say Thank You for a Great Addition to XBMC!
find quote
dgodot Offline
Junior Member
Posts: 6
Joined: Nov 2008
Reputation: 0
Post: #40
This is totally slick. Thanks a mint!
find quote
logictester Offline
Fan
Posts: 682
Joined: Oct 2008
Reputation: 0
Location: USA
Post: #41
this is so awsome - thanks a lot
find quote
CrashX Offline
Posting Freak
Posts: 1,164
Joined: Jan 2009
Reputation: 2
Post: #42
kay.one Wrote:i'm not sure if i understand correctly, but if the files are locked you can't even rename them , unless i'm missing something here

Yes and No .. In most cases, OS will allow renaming of files while it is locked .. but their are some cases where you can't do that as well in that case you can add to queue in the registry to be done when the system restarts ...

See MoveFileEx for examples ...
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #43
CrashX Wrote:...to be done when the system restarts ...
Restart the system?! That would take longer then they way we do it now.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #44
xexe Wrote:How about this for an idea. Instead of exclusively being used for auto install how about an option for auto download and inform that an install is ready via a local RSS feed.

Can i re suggest this as a short term means to help.


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
kay.one Offline
Senior Member
Posts: 156
Joined: Dec 2006
Reputation: 3
Post: #45
just moved the project to Google code, need some volunteers to start writing some sample howto guides. if you are interested please pm me with your Google user name.
find quote
Post Reply