2009-04-09, 23:53
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 ...