Automatic update

I have a system with two web applications, one web service, one Windows service and a WPF application that works 24 hours a day on the touch screen. All of them are connected to the database.

I want to update all these applications by uploading the update files to the database and setting the date and time of the update.

I have one idea on how to do this.

  • The application has a stream to search for available updates.
  • When an update is detected, the file is downloaded to the application computer.
  • When the download is complete, applications start a reboot.
  • When the application starts, it searches for the update file on the local computer.
  • If an update is available, the application updates itself.

I am not sure how all these steps should be carried out, especially the last one. But I need some comments on this. Is this completely wrong? Am I on the right track? Any tips on how to do this, or another way?

+5
source share
6 answers

I think you are going right. This is a database validation application for a new update, followed by the deployment of xcopy script.

This can also be done with a PowerShell script that runs on schedule, say every 10 minutes. It can check the database, shut down the process and service, xcopy application (from a common source) and restart the specified service and application.

, Windows . xcopy MSI, . AD MSI , !

MSDN MSI XCopy WPF ( ).

, SQL PowerShell: http://elegantcode.com/2008/03/27/discovering-windows-powershell/

!

+1

ClickOnce. ClickOnce WPF, -. "Updater", ClickOnce, , .

, , . Dropbox ; AutoHotKey script, , Dropbox ?

hokey, , .

+1

Microsoft Updater, , .

0

? .

ClickOnce, , , VisualStudio. -, , , , , .

ClickOnce

ClickOnce .NET Framework 2.0

ClickOnce, , . , , , .

- Application Updater, , ClickOnce.

ClickOnce , . , " ", .

0

Windows, . , - . , xml , . /, , , / , . , xml , , xml , .

0

What about Google Omaha ? It is an open source tool that is currently used to distribute updates to Google Chrome and Google Earth. Omaha can also handle applications. An overview of the high-level project can be found here .

0
source

All Articles