?
Solved

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

Posted on 2007-03-26
2
Medium Priority
?
1,607 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Expert Comment

by:Fahad Mukhtar
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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

765 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