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

updateCSharp-Winform-update

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

  • tingchechang
    实现停车场模拟,用栈和队列实现,用系统时间自动记录进入和出去时间(Parking achieve simulation, with stacks and queues implemented by the system automatically records the time of entry and exit time)
    2013-12-01 16:15:57下载
    积分:1
  • menu
    C#版折叠菜单示例源代码,点击“文件”菜单,当鼠标滑到最底部菜单的时候,可以展开更多的菜单内容,虽然是小技巧,我觉得挺实用的(C# version of the sample source code folding menu, click on the " File" menu, slide the bottom of the menu when the mouse when the contents of the menu can be expanded more, although tips, I feel very useful)
    2013-07-09 15:01:27下载
    积分:1
  • pipe
    linux进程间通信,无名管道pipe,使用的两个文件的描述符。fd[0]:读管道,fd[1]:写管道(Linux interprocess communication, anonymous pipe pipe,The descriptor of the two files used. Fd[0]read the pipe, fd[1]write the pipe)
    2018-07-04 10:21:23下载
    积分:1
  • pe2
    远程控制服务端,功能很全,是注册系统服务来实现的,不过这个服务现在已经不用了,大家可以作为参考。(Remote control of server-side, functional whole, the registry service to achieve, but the service is now not everyone can be used as a reference.)
    2012-03-08 23:00:54下载
    积分:1
  • rfid
    从实验箱中读取在数据收集到数据库sqlite3(get data rifd uhf)
    2013-11-20 09:48:48下载
    积分:1
  • shouyan-sms-ocx
    【控件使用步骤】: 第一步:用数据线或红外设置把短信猫(或短信模块、手机等)连接到电脑; 第二步:运行“控件注册及加密狗驱动安装.exe”注册控件及安装加密狗驱动程序[注意:无加密狗版本亦需这一步!] 第三步:打开你的开发平台(如VB、Delphi,VC,PB,.net等),调用本控件即可,控件名称为:ShouYan_SmsGate,详见《开发说明书》; 第四步:发布你的软件时,连“SMSOCX308.OCX”文件打包发布即可(另外,需在目标电脑上运行一次“控件注册及加密狗驱动安装.exe”)。 【关于授权】 本控件支持两种授权方式:带加密狗和不带加密狗方式 【关于OEM】 一次性定购三个授权以上,免费OEM 【关于驱动安装】 在分发软件时可以通过如下方式隐藏驱动的安装过程: shell "控件注册及加密狗驱动安装.exe /s" ([Controls] using the steps: Step one: with a data cable or infrared setting the SMS cat (or SMS module, mobile phone, etc.) connected to the computer Step 2: Run " controls the registration and dongle driver installation exe." Registration and Control install the dongle driver [Note: No dongle version also need this step! ] The third step: Open your development platform (such as VB, Delphi, VC, PB, net, etc.), you can call the control, the control name is: ShouYan_SmsGate, see " Development Guide" Step Four: Publish your When the software, even the " SMSOCX308.OCX" file packaged and released to (in addition, the need to run a " control registration and dongle driver installation. exe" on the target computer). [Authority] on the control supports two types of license: with and without dongle dongle on the way [OEM] authorized a one-time order of three or more, free OEM [about] when installing the driver software can be distributed in the following wa)
    2014-01-15 18:35:19下载
    积分:1
  • Book ASP.net
    可以实现登录、注册,对数据库的增删改查,数据库类型为access(Login, registration, database additions and deletions, database type access)
    2018-06-05 09:38:33下载
    积分:1
  • win32五子棋
    在VS环境下基于win32写了一个五子棋,可以实现判断输赢,悔棋,重新开始游戏等功能,适合初学者学习,建立代码的兴趣(Writing a Gobang based on Win32 in VS environment can realize the functions of judging win or lose, repenting chess and restarting the game. It is suitable for beginners to learn and build up their interest in code.)
    2020-06-16 07:40:01下载
    积分:1
  • network
    网络分析,选取点,对所选取的点进行网络分析和计算(Network analysis, select points, network analysis and calculation of the selected points)
    2017-06-27 15:06:09下载
    积分:1
  • ceing
    一个直接写屏的模拟电影字幕的效果的测试程序,可以给你的程序带来很漂亮的效果1(A direct write screen simulation film subtitle effect test program, can give your program to bring a very beautiful effect 1)
    2018-09-30 06:21:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载