I can get the program to easily, upon startup, look for updates and then install them.
I want to have a button that the user can click that will check/install updates. Is this possible, if so how?
Edit: Sorry all, not ASP.NET; VB.NET only
I can get the program to easily, upon startup, look for updates and then install them.
I want to have a button that the user can click that will check/install updates. Is this possible, if so how?
Edit: Sorry all, not ASP.NET; VB.NET only
This is not difficult. Presumably the update/install code is in its own routine. In the button's click event code, simply call the update/install routine used by the startup code.
I noticed the asp.net tag on your question. Are you talking a desktop app or like from an admin page of a customer installed web application?
If it's a desktop app, just look into a ClickOnce deployment. It has that functionality built in.
Either I am not getting the big picture or it's because i work on a asp.net environment...
Anyway, I did something like you asked for our products (web applications) and it was anything but a simple task.
Here is how I did it: 1 - Build a back office application to release new product versions.
2 - Build a webService that received a given product and a version, checked if there was an update available, if so send it to the client.
3 - On the client when received an update, installed it.
I guess the update process will be easier to do on a windows application, my only advice is to be extremely careful when doing it. Always make a safe copy of your application so if anything goes wrong you can roll-back to the previous version.
This msdn page outlines your different options for ClickOnce updates. It explains how to check for updates before your application starts, after you application starts, or programmatically.
My guess is that you would probably want to combine one of the automatic checks (before or after application starting) with your programmatic check (on your button click).