Greetings,
We have an application written in .net 3.5 that uses wcf and also wpf for the purpose of presentation. We have No-touch deployment implemented so users just click on internet shortcut and application starts immediately.
Sometimes, when we update application, it takes about 30minutes to update client applications, server and database. We would like to show information like “Application is updating. Please try again later” during our update job so users won’t be able to run application or make any actions in case when application has been already running.
How can we achive this kind of functionality?
PS. We cannot use Click-Once.
Greetings, We have an application written in .net 3.5 that uses wcf and also
Share
Create an extra method on your WCF service
public bool ApplicationIsOnline()
implementation of this method: add an appsetting in the configfile of the service that indicates whether is application is online or not. When you start upgrading alter the appsetting to false, when the installation is done, alter it back to true
At the startup of your program you call this method, when the WCF call returns true you can start the application, when the call returns false you can show a message to the user to try again later.