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

updateCSharp-Winform-update

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

  • motor
    电机速度实时变动代码,可以根据你想设定的速度进行设置 也就是傻瓜时的设置(motor speed will change as you set in time )
    2014-12-09 16:44:07下载
    积分:1
  • WINDOWS MFC学生信息管理系统
    这是一个基于Windows mfc编程的学生信息管理系统,对学生信息的txt文档录入并且进行增删改查等操作(A MANAGEMENT SYSTEM FOR STUDENT INFORMATION USING WINDOWS MFC)
    2019-02-13 20:20:06下载
    积分:1
  • EtherCAT Slave DC Sync to customer
    说明:  实现Ethercat现场通讯的主从站代码实例(An Example of Master-slave Station Code for Ethercat Field Communication)
    2019-04-06 13:54:05下载
    积分:1
  • Explode
    DirectDraw 制作的爆炸效果使用演示(DirectDraw produced by the effects of the use of explosive demonstration)
    2006-06-06 12:05:07下载
    积分:1
  • testZeroMQ
    内含简单项目代码及ZeroMQ使用教程,资源适合初学者,可以满足快速入门要求 下载ZeroMQ 下载网址:http://zeromq.org/intro:get-the-software 点击“Windows sources”下载zeromq-4.0.3.zip文件 编译ZeroMQ库文件 解压zeromq-4.0.3.zip文件,进入buildsmsvc目录,用VS打开*.sln工程文件,编译生成解决方案。编译完成后,会在lib目录下生成dll和lib文件 编写简单的测试工程 1.用VS新建2个项目,一个是server端,一个是client端 2.将ZeroMQ源码项目的include目录下的两个文件“zmq.h”,“zmq_utils.h”拷贝至自己新建的工程 3.将ZeroMQ源码项目的lib目录下的两个文件“libzmq.dll”,“libzmq.lib”拷贝至自己新建的工程 4.将文件“zmq.h”,“zmq_utils.h”和“libzmq.lib”添加进自己新建的项目。(ZeroMQ simple project containing the code and tutorials, resources for beginners, to meet the requirements of the Quick Start Download ZeroMQ Download URL: http://zeromq.org/intro:get-the-software Click " Windows sources" download zeromq-4.0. 3.zip ZeroMQ library files compiled zeromq-4.0.3.zip unzip the file, enter builds msvc directory, with VS open*. sln project file, the compiler generates solutions. After the compilation is complete, it will generate dll and lib files in the lib directory to write a simple test project. Using VS New two projects, one is server-side, is a client-side two would both include directories ZeroMQ source project under File " zmq.h" , " zmq_utils.h" copy to their new project 3 would be two files ZeroMQ source project lib directory under " libzmq.dll" , " libzmq.lib" copy to their new project 4 would file " zmq.h" , " zmq_utils.h" and " libzmq.lib" added to their new projects.)
    2014-02-19 08:43:26下载
    积分:1
  • OpcNetApiSample
    利用OpcNet控件(包含源码)进行OPC通讯的开发样例(OPC communication)
    2021-04-13 13:28:56下载
    积分:1
  • c6748
    创龙DSPC6748开发板例程, 大家可以学习研究下(example for chuanglong C674)
    2016-03-02 15:35:08下载
    积分:1
  • 564567584444
    C#创建生成PDF文档源码实例,只是生成简单的纯文字PDF,生成更复杂的PDF文档,程序还需要诸多改进,有兴趣的参考源码。实例用到了生成PDF的第三方组件:ICSharpCode.SharpZipLib.dll、itextsharp.dll,该组件可百度搜索下载。 ,作者拥有版权,仅供学习与参考。(C# to create PDF documents generated source code examples, just to generate a simple plain text PDF, generate more complex PDF documents, procedures also need some improvements, interested reference source. The examples used to generate PDF third party components: ICSharpCode.SharpZipLib.dll, itextsharp.dll, the assembly can be Baidu search download. The author, copyright, learning and reference purposes only.)
    2013-09-10 13:21:25下载
    积分:1
  • Active-piece-of
    VC++实现滑动块 按键盘A键滑块左移,D键滑块右移(VC++ realize sliding blocks. According to A slider keyboard key moves left, D key slider move to the right. )
    2012-07-04 01:50:57下载
    积分:1
  • APPLICATION-CLIENT-SERVER
    communication client server
    2013-03-31 17:38:59下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载