Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi I need to check automatic updation for desktop application (windows forms).i have developed application using windows forms.If any update is available for that, it should prompt a "updates" while opening a software or it.


1.If user didn't update the app means, the whole application will be closed

2.After completion of update only, the user can run the software or application.

e.g Whatsapp, antivirus trial version ended.(trial can't run after ended)

how to do this?
Posted

1 solution

Write a webservice that takes versionId as parameter and host it on your server.
from your application make a call to this webservice and match server version and application version.If the version is different pass false and then on a check of this false close your application.
 
Share this answer
 
Comments
Sathish km 23-Jun-15 8:18am    
Thk U... can please give me a example?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900