How are applications made in C# Windows Forms updated, with version control?

Asked

Viewed 2,946 times

17

What would be the step by step of such update so that the software after going through some change or update this is reflected to the systems that have the same software?

1 answer

18


Create a Windows Forms project in your Visual Studio:

File -> New -> Project inserir a descrição da imagem aqui

When opening your application right-click on the name of your project in my drop-down goes to the item Properties (Properties of your project).

inserir a descrição da imagem aqui

From now on are very basic settings for your application to be updated via internet.

Choosing Publish for such settings

inserir a descrição da imagem aqui

In the text box Publishing Folder Location a local folder will be configured which is a folder that my server IIS has configured a Site (note that it has ftp and web server yet for such configuration, for example, if your folder is remote can be configured an FTP).

Folder path: C:\inetpub\wwwroot\Update

In the text box Installation Folder URL, will be the http address containing the files required for online installations and updates of your systems. Obs: in our case will be done on the machine localhost but, can be done on a site normally following the same idea

Path to the URL: http://127.0.0.1/Update/

With these two settings will be the screen like this: inserir a descrição da imagem aqui

On that same screen is a button Updates

inserir a descrição da imagem aqui

Click on it and enable the settings The application should check for updates and for now only this configuration is enough for this simple example.

inserir a descrição da imagem aqui

After leaving this set confirm the screen on the button OK. On the previous screen has the button Publish Now that at that time should be clicked to have a build and Publish succeeded.

inserir a descrição da imagem aqui

Install for the first time via Web

Type in your browser the URL: http://127.0.0.1/Update/setup.exe and follow the installation instructions

inserir a descrição da imagem aqui

After installation it is simple the software already installed on my machine with the screen that actually has nothing

inserir a descrição da imagem aqui

Now I go in the project and I will add on this screen a button and I want after new publication to be done an automatic online update of the application, being again clicked on Publish Now to generate the new version.

After that I click again on the program and see what happens:

inserir a descrição da imagem aqui

You can give a OK or Ignore the new software update. By clicking OK the screen will suffer button update:

inserir a descrição da imagem aqui

How would the folder of all these updates look:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

It happens to increase every time we give one Publish Now, because the configuration Automatically increment Revision with each Publish is marked.

inserir a descrição da imagem aqui

Reference

Browser other questions tagged

You are not signed in. Login or sign up in order to post.