auto update feature in desktop application

i have create a small application using C# and make setup of this application.now,this setup is using by other people.now ,i am working on another version of this application.so, it will be launch soon.now i want to trace the previous version of application
and generate the message"latest version is available you want to update it" with the yes or no button .if click on yes then update it will be run automatically.How to impliment this with latest version. please help me.