惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - 空中的风月

EJB 简介 MyBatis 简介 Hibernate 简介 Struts2 简介 Spring MVC简介 WebLogic中的一些基本概念 浅谈WebLogic和Tomcat Tomcat安装配置 由少林寺比武想到软件行业分工 觀察者模式 SQLServer硬件性能监控列表 数据库方面面试问题 JAVA程序员面试32问 C#常看面试问题以及解答 在做物流的库存管理系统里,需要注意。。。。。 在写自动更新程序中出现的问题 项目管理中可能有的问题,以及如何去面对! 数据库设计中的五个范式 打印联纸报表时,出现每页都向下跳一点的问题?
关于软件自动升级程序的设计方法
空中的风月 · 2005-04-29 · via 博客园 - 空中的风月

软件自动升级,就必须要原来的软件代替了。但是如何代替现在正在运行软件?

方法只有一种,即是用第三方法软件。这个第三方法软件可以好几种,1.是Bat(批处理软件)。2.自编软件。
这两种方式的程序编的是不相同的。

第一种:Bat软件的设计原理如下:
            1.通过程序得到需要升级的需求。 
            2.用程序生成一个Bat文件,通过Bat得到最新的软件。
            3.再关闭这个程序,并通过Bat得到代替原有的软件。再删除自动删除Bat文件。

第二种:自编升级软件,设计原理如下:
            1.通过程序得到需要升级的需求。
            2.关闭自己,并运行自编的软件,最后,得到这个软件,并覆盖软件。
            3.最后,关闭自动升级软件,并运行软件。

第一种的好处:不用再写升级软件。但是同时要定Bat处理过程软件。
第二种的好处:流程明确,并且可以通过进程条的形式显示程序更新的过程。(这种是比较流行的升级方式)。