PDA

View Full Version : need method to create updater in visual studio 2005 using C#


rahul
03-09-2007, 02:07 AM
Hello all,
I am developing a windows application using C# in visual studio 2005. I need to write a code for my current application to check the server whether any updated version of this application is available or not everytime it starts. If available it should prompt the message "Higher version is available. Do you want to update your application.". If I click yes then it should uninstall my current application and install the updated application.

So please help...

Kenneth Gorking
03-10-2007, 06:59 AM
You can use the 'Publish' feature. Right-click on your project -> Properties -> Publish -> Updates... -> Check the 'The Application should check for updates'
MSVC will now auto-generate the code needed for this feature. Create your installer by clicking the Build menu -> Publish 'project name' and you are done.