Solved

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

Posted on 2007-03-26
2
1,586 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

15 Experts available now in Live!

Get 1:1 Help Now