登录
首页 » C# » updateCSharp-Winform-update

updateCSharp-Winform-update

于 2014-04-09 发布 文件大小:809KB
0 184
下载积分: 1 下载次数: 11

代码说明:

  C# Winform 实现软件自动更新升级,我们将登录窗口单独做成一个可执行文件,用户登录时,从网上检测是否有新的主程序,如果有,则从后台下载并覆盖老的版本,用户输入正确的用户名和密码后,通过参数将必要的信息(如用户名、密码等)传递给主程序,实现登录。   由于本项目涉及到不止一个程序,为保证运行正确,需要将编译后的可执行文件放到同一个文件夹,尽管我们可以编译后再将文件复制到同一个文件夹中,但每次都手工复制比较费事,这里采取一个简单的办法。先在硬盘中创建一个文件夹,如D:output,选择菜单“项目”→“属性”,会弹出一个对话框,在配置(C)后面选择“所有配置”,选择配置属性的生成项,在输出路径中输入“D:output”,再编译时输出的可执行文件乖乖地跑到D:output下面了(C# software Winform y las actualizaciones automáticas de actualización, vamos a hacer un archivo de la ventana de inicio de sesión ejecutable independiente, cuando el usuario se conecta, a través de Internet para detectar si hay un nuevo programa principal, si las hubiere, de los antecedentes de descarga y sobrescribir la versión anterior, el usuario introduce la correcta Después de que el nombre de usuario y contraseñ a a través de los parámetros de la información necesaria (como nombres de usuario, contraseñ as, etc) pasa al programa principal, el inicio de sesión realización. Dado que el proyecto involucra a más de un programa, con el fin de garantizar un funcionamiento correcto, es necesario compilar el archivo ejecutable en la misma carpeta, a pesar de que podemos compilar y luego copiar el archivo en la misma carpeta, pero cada mano Copie relativamente problemas, aquí tomar un enfoque simple. En primer lugar crear una carpeta en su disco duro, por ejemplo, D: salida , )

文件列表:

updateC# Winform update
.......................\Login

.......................\.....\AssemblyInfo.cs,1859,2004-02-04
.......................\.....\bin
.......................\.....\...\Debug
.......................\.....\Form1.cs,11624,2013-09-21
.......................\.....\Form1.resx,9804,2004-02-04
.......................\.....\Login.csproj,4646,2004-02-04
.......................\.....\Login.csproj.user,1803,2004-02-04
.......................\.....\obj
.......................\.....\...\Debug
.......................\.....\...\.....\Login.exe,28672,2004-02-04
.......................\.....\...\.....\Login.Form1.resources,6466,2004-02-04
.......................\.....\...\.....\Login.pdb,19968,2004-02-04
.......................\.....\...\.....\temp
.......................\.....\...\.....\TempPE
.......................\MainPro

.......................\.......\AssemblyInfo.cs,1859,2004-02-04
.......................\.......\bin
.......................\.......\...\Debug
.......................\.......\...\.....\MainPro.exe,16384,2004-02-04
.......................\.......\...\.....\MainPro.pdb,13824,2004-02-04
.......................\.......\Form1.cs,1955,2004-02-04
.......................\.......\Form1.resx,6432,2004-02-04
.......................\.......\MainPro.csproj,4650,2004-02-04
.......................\.......\MainPro.csproj.user,1803,2004-02-04
.......................\.......\MainPro.sln,1902,2004-02-04
.......................\.......\obj
.......................\.......\...\Debug
.......................\.......\...\.....\MainPro.exe,20480,2004-02-04
.......................\.......\...\.....\MainPro.Form1.resources,3304,2004-02-04
.......................\.......\...\.....\MainPro.pdb,13824,2004-02-04
.......................\.......\...\.....\temp
.......................\.......\...\.....\TempPE
.......................\mydatabase.mdb,3076096,2004-02-04
.......................\UpLoad

.......................\......\AssemblyInfo.cs,1859,2004-02-04
.......................\......\bin
.......................\......\...\Debug
.......................\......\Form1.cs,9167,2013-09-21
.......................\......\Form1.resx,10367,2004-02-04
.......................\......\obj
.......................\......\...\Debug
.......................\......\...\.....\temp
.......................\......\...\.....\TempPE
.......................\......\...\.....\UpLoad.exe,28672,2004-02-04
.......................\......\...\.....\UpLoad.Form1.resources,6995,2004-02-04
.......................\......\...\.....\UpLoad.pdb,17920,2004-02-04
.......................\......\UpLoad.csproj,4648,2004-02-04
.......................\......\UpLoad.csproj.user,1803,2004-02-04
.......................\在C#中实现软件自动升级.doc,1100288,2013-09-21

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zi-xing-che-Proteus
    电动自行车仿真,可以控制速度,自行车的前进后退等功能,可以加速减速,利用proteus进行了仿真(Electric bicycle simulation, you can control the speed, bike forward and backward functions, you can speed reducer, use proteus simulation)
    2013-05-31 09:05:32下载
    积分:1
  • Skin++3.0+For+VC++完全破解版
    很好的界面库,皮肤很多,都可以使用,测试通过,有兴趣的看看,很好的界面库,皮肤很多,都可以使用,测试通过,有兴趣的看看,(Very good interface library, a lot of skin, can be used, test passed, interested to see, a good interface library, a lot of skin, can be used, test passed, interested to see.)
    2020-06-23 02:40:01下载
    积分:1
  • haisanids
    VC++网络连接监控程序源代码,适合编写网络监控的编程者参考,选择监听的网络IP地址后才可以开始监听里程。并包括了IDS过滤器参数设置,几点提示:   1.初始状态只监听连接,不捕获IP数据   2.鼠标右击列表选择或取消监控某端口数据   3.为防止ping攻击,一般情况ping数据全部监控   4.监控某端口数据时,不监控ping包   5.数据超过20k将被清空   6.右边窗口停止抓包后显示十六进制数(VC++ source code network connection monitoring, network monitoring program for the preparation of reference, select the monitor s network IP address before you can start listening mileage. And includes IDS filter parameter settings, a few tips: 1. Initial state only listen for connections, do not capture IP data 2 Right-click the list to select or deselect a port monitoring data 3 To prevent ping attacks, general ping all monitoring data 4 When a port monitoring data, no monitoring of ping packets 5 The data will be cleared over 20k 6 right window displays the hexadecimal number stopped after capture)
    2014-07-02 10:17:36下载
    积分:1
  • Clanguage
    这是有关C语言程序设计的书籍,想学好C语言的朋友来下载吧。(This is the C programming language books, friends want to learn C language to download it.)
    2010-11-23 16:32:08下载
    积分:1
  • C#自动更新服务(本地服务安装)
    using System;using System.Collections.Generic;using System.Linq;using System.Text;using Common.WinService;using Common.Log;using System.Threading;using Common.Net;using System.Text.RegularExpressions;namespace Collection.AutoRunner{    //获取学生信息    public class Service_Update_Data : IWindowsService    {        private ILogWriter _logWriter = null;        private const string logCategory = "Services.Info";        private string logInfoSource = "Update_Data";        private const string logErrorCategory = "Services.Error";        private const string logErrorSource = "Update_Data_Error";        private bool BeStop = true;        private System.Timers.Timer timer = null;        public void Start(Common.Log.ILogWriter logWriter, string gameCode)        {            gameCode = gameCode.ToUpper();            logInfoSource = gameCode;            _logWriter = logWriter;            BeStop = false;            StartRequestData();        }        int stata = 0;        private void StartRequestData()        {            try            {                #region 配置                //时间频率                var UpdateStudentSpan = ServiceHelper.GetInterval("UpdateData");                //更新学生开始时间                var studentbegintime = ServiceHelper.GetInterval("StudentBeginTime");                //更新学生结束时间                var studentendtime = ServiceHelper.GetInterval("StudentEndTime");                    //是否更新学生基本信息:true为更新 false为不更新                var IsUpdateStudnet =Convert.ToBoolean(ServiceHelper.GetSystemConfig("IsUpdateStudnet"));                                #endregion                timer = ServiceHelper.ExcuteByTimer(UpdateStudentSpan, () =>                {                    int timeHour = DateTime.Now.Hour;                    if (timeHour == 3)                        stata = 0;                    #region 更新学生基本信息                    if (studentbegintime
    2015-03-11下载
    积分:1
  • wvtftp-1.0.1.tar
    BlueCove is a JSR-82 J2SE implementation that currently interfaces with the Mac OS X, WIDCOMM, BlueSoleil and Microsoft Bluetooth stack found in Windows XP SP2 and newer. Originally developed by Intel Research and currently maintained by volunteers. BlueCove runs on any JVM starting from version 1.1 or newer on Windows Mobile, Windows XP and Windows Vista, Mac OS X.
    2010-06-13 18:52:52下载
    积分:1
  • keyboard
    这个是键盘程序,通过单片机实现。工程文件可用keil打开(This is an keyboard program, through MCU. Project files can be opened keil)
    2015-02-05 12:06:42下载
    积分:1
  • Visual-C-chap4
    Visual C++编程与项目开发编程实例 chap4(Visual C++ programming and project development corresponding source code programming examples chap4)
    2013-10-14 11:05:20下载
    积分:1
  • cpplibraryfunctionmanual
    里面包含了linux和c++库函数使用手册,希望对学习c++的人有帮助(Which contains linux and c++ library function manual, and I hope people learn c++ help)
    2011-01-08 12:33:10下载
    积分:1
  • Music
    code music player with c#
    2010-11-13 04:37:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载