Click here to Skip to main content
15,747,908 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I'm just finishing up a project for a client. It consists of an HTML5 application that is run from the local filesystem (a USB stick). The application includes the Chromium browser.

The client has just requested a new feature: they'd like the software to be able to auto-update.

Enumerating and fetching an update is no problem... but I'm not sure how I'll deploy back to the filesystem. I can't use fileapi because the saved content would be sandboxed.

We don't want the user to have to download a zip and save files to the stick -- that's way above the average user's ability.

Flash/Silverlight/AIR etc are not options (that's why it was written for HTML5).

Maybe a chromium extension?

Suggestions are welcome.
Sergey Alexandrovich Kryukov 26-Feb-13 16:43pm    
You are not asking about something certain, because it heavily depends on how the site is hosted.
Yvan Rodrigues 26-Feb-13 16:47pm    
How so? On the client side there is no hosting to speak of. The user interacts with offline HTML stored on the filesystem.

Currently the only server involved is a web service that the client calls to register the software (IIS7/.NET4). To update, the client would poll the web service to see if an update is available, and then pull it.
Sergey Alexandrovich Kryukov 26-Feb-13 16:55pm    
Do you mean update the site through the site interface itself? Then I did not get you. If so, my response would be just the opposite: what's the problem? Millions of sites do that, including CodeProject, in a way.
You just need to create a secure update interface on the site, protected from other members...
Yvan Rodrigues 26-Feb-13 17:01pm    
Hi Sergey, you're losing me -- there's no mention of a site in the original post.

Let's say you have a file on your desktop called foo.html. It has never been on a "site" in its life. I want foo.html to update itself when the web service says there is a new foo.html.
Sergey Alexandrovich Kryukov 26-Feb-13 17:09pm    
OOPS! Sorry... Is all sounds unusual... an HTML file used locally, from USB stick... But are you going to have a local software process to access the Web service and update the file? Should it be a service (permanently running, detecting insertion of the flash memory) or not? What's the problem, anyway? And why such rigid and weird settings..?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900