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

updateCSharp-Winform-update

于 2014-04-09 发布 文件大小:809KB
0 165
下载积分: 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 个回复

  • CArray
    CArray类的应用CArray.rar,很不错的vc源码,希望能对大家有所帮助(CArray class applications CArray.rar, very good vc source code, I hope you can help)
    2011-09-11 21:36:16下载
    积分:1
  • Teach-Yourself-CPP-in-21-Days--5th-edition-(Sams-
    This is an excellent hands-on guide for the beginning programmer. Packed with examples of syntax and detailed analysis of code, fundamentals such as managing I/O, loops, arrays and creating C++ applications are all covered in the 21 easy-to-follow lessons.
    2012-11-26 18:39:48下载
    积分:1
  • SpillGuard__version_0.0.0.2__20081231
    Office DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLP(Office DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLPOffice DLP)
    2009-05-20 12:40:50下载
    积分:1
  • socket
    基于socket与数据库的自动贩货机服务器端和客户端的编程(Socket and the database automatically based on trafficking in goods and client-server programming)
    2011-05-16 15:45:31下载
    积分:1
  • Tester
    C#和DirectX实时监控麦克风输入音量(C# and DirectX monitor the microphone input volume in real time)
    2018-05-28 22:50:55下载
    积分:1
  • CaptureTest
    说明:  用C#编写的基于DirectX的音频、视频采集程序及源代码。包含完整的.net类库“DirectX.Capture”以及说明文档。(This is a audio and video caputure program which is written using C# and based on DirectX. Includes the full .Net Class Library of "DirectX.Capture" and documentation.)
    2010-04-10 10:44:50下载
    积分:1
  • 642NET
    TMS320DM642的网络端口输入输出演示实例,C语言代码段(The demonstration network input and output ports of TMS320DM642, C language code snippet)
    2016-12-15 10:56:41下载
    积分:1
  • CPPpractice
    这里是100多个c++经典小程序,以及C++经典100例,想学C++的赶紧下载吧(100 good programms to practice c++)
    2011-11-30 20:59:33下载
    积分:1
  • CharTerminal
    说明:  简单的串口通讯例子,有主机,目标机组成,发送数据,接受数据(Simple example of serial communication, a host, target composition, send data, receive data)
    2011-04-10 18:48:55下载
    积分:1
  • Duilib
    2013+duilib入门简明教程+整个工程(含资源、代码)+(2013+duilib entry Concise Guide+ entire project (including resources, code)+)
    2014-03-24 15:36:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载