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

updateCSharp-Winform-update

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

  • 9022
    SII9022代码,TTL转HDMI芯片配置代码。(The Code for TTL to HDMI of SII9022.)
    2021-01-08 10:48:51下载
    积分:1
  • cSharp-walk-man
    一个c#编写的行走的人的例程,此例程主要是为了更好的使用c#的picturebox和定时器。(A c# prepared by a person walking routine, mainly in order to make better use of c# picturebox and timer.)
    2013-08-26 16:27:10下载
    积分:1
  • 完整串口通信序Vc++源代码
    一个非常完整的川口通讯源程序,我费了很大功夫才把他找到。(a very complete source Kawaguchi communications, I spent a lot of time and energy only to find him.)
    2020-11-21 14:29:37下载
    积分:1
  • Modbus Slver
    本程序为DSP28335编写的modbus从站程序,对DSP串口编写人员有一定帮助。(The procedures for the preparation of modbus slave DSP28335 program, the DSP serial writers have some help.)
    2013-09-06 10:47:27下载
    积分:1
  • shiyan
    信号进入信道,经过高斯噪声的干扰,经过QPSK调制以后的时延 (The signal enters the channel, after the interference of the Gaussian noise after a delay after the QPSK modulation)
    2013-04-16 09:40:11下载
    积分:1
  • MSIIVP
    简单的聊天系统,本程序是使用vc进行编程的,可以学习的()
    2018-04-10 14:59:50下载
    积分:1
  • lizi
    采用C++语言,Direct3D下用shader实现简单粒子的源码,初学者可借鉴(Using C++ language, achieved under Direct3D shader source code using simple particles, beginners can learn)
    2014-04-03 22:26:51下载
    积分:1
  • 05753794
    《Office2000下内部COM插件的编程实现》配套代码,(< Office2000 internal COM plug-in programming implementation > supporting code,)
    2018-12-30 08:48:28下载
    积分:1
  • PRO-Clock_PIC_V1.0
    用PIC16F1933做的一个LCD显示时钟小程序(A LCD display clock applet made with PIC16F1933)
    2017-12-23 13:21:12下载
    积分:1
  • xpt2046驱动
    说明:  一款电阻屏的驱动文件,linux-xpt2046驱动,非单片机驱动,是linux的。 压缩包包含xpt2046.c xpt2046.h,使用的是spi总线.供大家使用(A resistance screen driver file, Linux - XPT2046 driver, non - SCM driver, is Linux. Compressed package contains Xpt2046.c xpt2046.h, using spI bus. For everyone to use)
    2021-01-01 21:18:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载