C# Winforms autoupdate check

50 views Asked by At

I am trying to make autoupdate check and upgrade procedure (now from location on shared drive, in future maybe from server).

I have created "Visual Studio Installer" project that creates setup and it is possible to install the app. Also I have created another binary that searches for updates - if there are updates and user wants it, it runs the setup and app ends - if no updates, it runs main program. I have selected 2 binaries system in order to have possibility to run app without updates checking.

But If I confirm the update I am getting "Another version of this product is already installed. error code..." dialog.

I am not sure if my approach is right, probably not. But I found only commerce solutions and ClickOnce which seems to be for updating from network.

Thank you in advices for your answers.

1

There are 1 answers

0
Abubakr Mahdi On

It seems you are looking for something that allow you to have folder in your disk or a shared drive that can be used as local server to help you make updates without using internet connection , I introduce you to Squirrel.Windows its an open source installation and update framework for Windows desktop apps.

Here is link for Getting Started With Squirrel. And here is a Youtube Video by Tim Corey where he explain Squirrel practically with demo windows forms project.

Happy Codding...