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

updateCSharp-Winform-update

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

  • USBDMV23_24512
    USBDMV23包含有详细得的地德资料哦哦哦哦哦(USBDMV23 contains a detailed the DE data oh oh oh oh oh)
    2013-12-16 15:55:03下载
    积分:1
  • SmallDC
    说明:  利用dsp28335的pwm控制直流力矩电机,实现俯仰和航向轴的定位、随动控制。(Using the PWM of DSP28335 to control the DC torque motor, the positioning and servo control of pitch and heading axis are realized.)
    2020-06-19 08:00:01下载
    积分:1
  • h15
    模拟交通信号灯控制,一般情况下正常显示,有急救车到达时,两个方向交通 信号灯全红,以便让急救车通过。设急救车通过路口时间为10 秒,急救车通过后,交通恢 复正常,用单次脉冲申请外部中断,表示有急救车通过。(simulated traffic signal control, under normal circumstances normal show that emergency vehicles arrived, the two directions of traffic lights all red, in order to allow emergency vehicles through. Based emergency vehicles through the intersection for 10 seconds, after the passage of emergency vehicles, traffic returned to normal, with a single pulse for external interrupts, saying that a first aid trucks.)
    2004-12-12 21:17:51下载
    积分:1
  • MemoryCard
    use rapi to find out storage card information(use rapi to find out storage card informati on)
    2007-02-08 00:32:20下载
    积分:1
  • 10QEP
    ti dsp f2812上QEP功能实现测速(the ti dspf2812 on QEP function)
    2012-06-02 17:34:31下载
    积分:1
  • databaseapplication
    该程序基于MFC CdataBase类重做数据库中的应用程序(MFC CdataBase based on the program category in the database redo application)
    2009-04-25 09:24:47下载
    积分:1
  • http_rabbit_C
    用Dynamic C写的http程序,可以在rabbit芯片上跑(using Dynamic C http written procedures, the rabbit can run on chips)
    2007-04-21 19:51:03下载
    积分:1
  • map
    有关map协议的asn解码方法,已经编译出来,如果对你有帮助,请下载(On the map of the ASN protocol decoding method, has been compiled from, if you have help, please download)
    2009-03-02 20:48:41下载
    积分:1
  • IAP_for_ w5500
    说明:  基于STM32单片机,通过w5500以太网芯片下载APP的IAP程序,实测正常使用。(Based on STM32 microcontroller, the IAP program of APP is downloaded through w5500 Ethernet chip, and it is tested to be in normal use.)
    2020-06-15 22:23:56下载
    积分:1
  • CatchScreen-4.26
    截屏保存为单色位图。其中有把彩色转换为单色的功能(Screenshot is saved as a monochrome bitmap. Which has the function of color into monochrome)
    2011-06-01 15:18:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载