I would suggest searching the forum for "over the air updates", it seems similar to what you're trying to accomplish and has been asked many times.