What is the way in which applications made in C # Windows Forms are updated, having version control?

17

What would be the step-by-step of such an upgrade so that the software after going through some change or upgrade does this reflect systems that have the same software?

    
asked by anonymous 09.05.2014 / 02:20

1 answer

17

Create a Windows Forms project in your Visual Studio:

File - > New - > Project

Whenyouopenyourapplication,right-clickonthenameofyourprojectinmydrop-downandgototheProperties/p>

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

Choose Publish for such settings

InthePublishingFolderLocationtextboxwillsetupalocalfolderthatisafolderthatmyIISserverhasconfiguredaSite(notethatyouhaveftpandwebserverstillforsuchaconfiguration,forexample,ifyourfolderisremoteyoucanconfigureanFTP).

FolderPath:C:\inetpub\wwwroot\Update

IntheInstallationFolderURLtextbox,thiswillbethehttpaddresscontainingthenecessaryfilesforinstallationandonlineupdatesofyoursystems.Obs:inourcasewillbedoneinthelocalhostofthemachinebut,canbedoneinasiteusuallyfollowingthesameidea

URLpath:http://127.0.0.1/Update/

Withthesetwosettingsthescreenwilllooklikethis:

On the same screen you have a Updates button

ClickonitandenabletheconfigurationTheapplicationshouldcheckforupdatesandfornowthisconfigurationissufficientforthissimpleexample.

After leaving this configured confirm the screen on the OK button. On the previous screen you have the Publish Now button that should be clicked at the moment to have a build and publish succeeded.

InstallingforthefirsttimeviatheWeb

TypeinyourbrowsertheURL:http://127.0.0.1/Update/setup.exeandfollowtheinstallationinstructions

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

NowI'mgoingtotheprojectandI'mgoingtoaddabuttononthatscreenandIwanttopostanautomaticupdateoftheapplicationonceagain,andclickPublishNowtogeneratethenewversionagain.

AfterthatIclickontheprogramagainandseewhathappens:

You can give OK or Ignore the new software update. Clicking OK will update the button:

Whatwouldbethefolderforalltheseupdates:

ThishappenseverytimewegivePublishNow,becausetheAutomaticallyincrementrevisionwitheachpublishsettingischecked.

Reference

09.05.2014 / 02:20