Solved

Auto-update with no user interaction - ClickOnce or Application Updater Block?

Posted on 2007-03-26
2
1,576 Views
Last Modified: 2013-11-07
Hi All,

I have to write an application that must have the ability to update itself. The application itself will be running 24/7 and I had thought of writing a service but because of the need to auto-update, I think a windows application would be better. The application sits on a remote machine running windows, but the auto-update must have no user interaction whatsoever.

The application will be running in a vending machine and it's job is to send data back to an ftp server over GPRS, but as new functionality is developed, the application needs to update itself, and either download the new version from ftp or http.

So, my question. What's the best technology to implement the auto-update with? The application will be written in C#, but I'm not sure whether to use ClickOnce or the Application Updater Block. The clients must have at least .NET 2.0 (as I need to use the serial port for AT commands to the GPRS modem).

ClickOnce might look like the one to go for, but I don't know how to get around the user interaction part. Also as the application is running 24/7 I'd prefer to update itself as it's running, or perhaps set a time (eg. 3am when the shops are closed) to have the application stop and restart itself (how to do that is another issue...!)

Many thanks.....
0
Comment
Question by:Advoco
2 Comments
 
LVL 19

Expert Comment

by:Desp
ID: 18792059
I have used Application Updater Block but havent try ClickOnce... I heard its better ...anyways  you can find something from here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=133483&SiteID=1
0
 
LVL 3

Accepted Solution

by:
Nico earned 500 total points
ID: 18806738
Depending on if you use a partially or fully trusted environment there doesn't have to be user interaction. The user only has to confirm the installation of an update in a partially trusted environment. Also, ClickOnce is quite customizable using the ClickOnce Deployment API : http://msdn2.microsoft.com/en-us/library/ms404263(VS.80).aspx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now