银屑病病友互助网

标题: 用微软官方工具批量安装更新程序 [打印本页]

作者: 人生    时间: 2005-5-12 08:22
标题: 用微软官方工具批量安装更新程序
< >如果你没有激活自动更新而是习惯使用手工更新方式,那么在大多数情况下,我们每安装一个系统更新或补丁程序,都需要重新启动操作系统,其麻烦可想而知。现在,如果利用微软官方发布的<FONT face="Times New Roman">QChina.exe</FONT>工具,就可以在只重新启动一次的情况下批量安装。我们安装的更新程序越多,就越节省时间,这对于服务器来说是非常重要的,而且在<FONT face="Times New Roman">Windows 2000</FONT>、<FONT face="Times New Roman">Windows NT 4.0</FONT>上都可以运行。  <FONT face="Times New Roman">

</FONT>  提示:<FONT face="Times New Roman">Windows</FONT>产品更新<FONT face="Times New Roman">(</FONT>关键更新、安全修补程序、修复程序<FONT face="Times New Roman">)</FONT>是一个可执行文件<FONT face="Times New Roman">(*</FONT>.<FONT face="Times New Roman">exe)</FONT>,该文件包含一个或多个可应用到<FONT face="Times New Roman">Windows</FONT>以纠正特定问题的系统文件。  <FONT face="Times New Roman">

</FONT>  <B>一、</B><B><FONT face="Times New Roman">QChina.exe</FONT></B><B>的适用范围</B><FONT face="Times New Roman">

</FONT>  <FONT face="Times New Roman">QChina.exe</FONT>是一个命令行工具,可以检测注册表的未决文件重命名队列键值,对多个更新程序的安装文件进行合适的链接和取舍操作,最终保证被修改的文件是最新版本。系统管理员可以借助这个工具将更新串联在一起,这样在安装多个更新时,在各次安装之间就不必重新启动计算机,而且还可以增加服务器的运行时间。  <FONT face="Times New Roman">

</FONT>  需要说明的是,利用<FONT face="Times New Roman">QChina.exe</FONT>批量安装更新要求使用<FONT face="Times New Roman">Hotfix.exe(Microsoft Windows NT 4.0)</FONT>或<FONT face="Times New Roman">Update.exe(Microsoft Windows 2000)</FONT>、<FONT face="Times New Roman">Microsoft Windows XP</FONT>或<FONT face="Times New Roman">Microsoft Windows Server 2003</FONT>的<FONT face="Times New Roman">Windows</FONT>产品更新,例如关键更新、安全修补程序或修复程序。  <FONT face="Times New Roman">

</FONT>  对于不使用<FONT face="Times New Roman">Hotfix.exe</FONT>或<FONT face="Times New Roman">Update.exe</FONT>作为安装程序的产品更新不适用,例如,<FONT face="Times New Roman">Windows NT 4.0</FONT>、<FONT face="Times New Roman">Windows 2000</FONT>、<FONT face="Times New Roman">Windows XP</FONT>的<FONT face="Times New Roman">IE</FONT>更新使用基于<FONT face="Times New Roman">INF</FONT>的安装而非<FONT face="Times New Roman">Update.exe</FONT>。  <FONT face="Times New Roman">

</FONT>  <B>二、如何获取</B><B><FONT face="Times New Roman">QChina.exe</FONT></B><FONT face="Times New Roman">

</FONT>  对于<FONT face="Times New Roman">2001</FONT>年<FONT face="Times New Roman">5</FONT>月<FONT face="Times New Roman">18</FONT>日以后发行的<FONT face="Times New Roman">Windows Server 2003</FONT>、<FONT face="Times New Roman">Windows XP</FONT>、<FONT face="Times New Roman">Windows 2000</FONT>产品更新,只要使用<FONT face="Times New Roman">Update.exe</FONT>,都已经包含了<FONT face="Times New Roman">QChain.exe</FONT>功能。不过,<FONT face="Times New Roman">2002</FONT>年<FONT face="Times New Roman">12</FONT>月以前发生的产品更新存在一个问题,在某些情况下,该问题可能会在计算机上应用错误的二进制文件,因此请使用<FONT face="Times New Roman">2003</FONT>年<FONT face="Times New Roman">2</FONT>月发布的更新版本。  <FONT face="Times New Roman">

</FONT>  首先,请从<FONT face="Times New Roman">http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&amp;&amp;familyid=3c64d889-74f1-490b-a2fb-f15671a3b60c&amp;&amp;displaylang=en</FONT>下载,大小<FONT face="Times New Roman">142KB</FONT>。  <FONT face="Times New Roman">

</FONT>  <B>三、操作步骤</B><FONT face="Times New Roman">

</FONT>  直接运行下载回来的<FONT face="Times New Roman">Q815062_W2K_spl_X86_EN.exe</FONT>文件,会释放出两个文件:<FONT face="Times New Roman">qchain.exe</FONT>、<FONT face="Times New Roman">eula.txt</FONT>,然后将<FONT face="Times New Roman">qchain.exe</FONT>放到<FONT face="Times New Roman">G:\hotfix</FONT>。我们可以使用<FONT face="Times New Roman">“qchain.exe </FONT>日志文件名<FONT face="Times New Roman">”</FONT>使用<FONT face="Times New Roman">“</FONT>挂起文件重命名操作<FONT face="Times New Roman">”</FONT>注册表项的前后快照来创建文件。<p></p></P>
<> <B> 第</B><B>1步:获得相应的更新程序  </B>

  首先,我们可以访问Windows Update站点获得相应的更新程序,注意应该直接访问http://v4.windowsupdate.microsoft.com/catalog页面,在左侧窗格选择“查找Microsoft Windows更新”,或者选择“查找硬件驱动程序更新”,接下来需要选择相对应的操作系统版本和语言,如果是下载驱动程序更新则需要选择所属的硬件类别,也可以在“高级搜索选项”中进一步细化查询条件和限制返回项目的数量,设置结束后单击“搜索”按钮,然后会看到所有可用的更新,将之添加到下载选择篮中,单击“浏览”按钮定位到本地文件夹保存下来。   <BR ><BR ></P>
作者: 人生    时间: 2005-5-12 08:23
标题: 用微软官方工具批量安装更新程序
< > 提示:所有下载的更新文件应放在与<FONT face="Times New Roman">qchain</FONT>.<FONT face="Times New Roman">exe</FONT>同一路径下,即<FONT face="Times New Roman">G?</FONT>\<FONT face="Times New Roman">hotfix</FONT>。  <FONT face="Times New Roman">

</FONT>  <B>第</B><B><FONT face="Times New Roman">2</FONT></B><B>步:创建批处理文件 </B> <FONT face="Times New Roman">

</FONT>  打开记事本,按照下面的格式进行编辑,并保存为<FONT face="Times New Roman">?.bat</FONT>的批处理文件:<FONT face="Times New Roman">

</FONT>  <FONT face="Times New Roman">@echo off

</FONT>  <FONT face="Times New Roman">setlocal

</FONT>  <FONT face="Times New Roman">set PATHTOFIXES=g:\hotfix

</FONT>  <FONT face="Times New Roman">%PATHTOFIXES%\Q123456_w2k_sp2

</FONT>  <FONT face="Times New Roman">_x86.exe -z -m

</FONT>  <FONT face="Times New Roman">%PATHTOFIXES%\Q123321_w2k_sp2

</FONT>  <FONT face="Times New Roman">_x86.exe -z -m

</FONT>  <FONT face="Times New Roman">%PATHTOFIXES%\Q123789_w2k_sp2

</FONT>  <FONT face="Times New Roman">_x86.exe -z -m

</FONT>  <FONT face="Times New Roman">ATHTOFIXES%\qchain.exe</FONT>  <FONT face="Times New Roman">

</FONT>  这里的<FONT face="Times New Roman">Q123456_w2k_sp2_x86.exe</FONT>是所下载的更新程序的文件名,而<FONT face="Times New Roman">“-z”</FONT>参数是指示安装程序在安装后不必重新启动,<FONT face="Times New Roman">“-m”</FONT>参数是在安装期间不显示提示或消息,即所谓的静默模式。<p></p></P>
< >  <B>第</B><B><FONT face="Times New Roman">3</FONT></B><B>步:批量安装更新 </B> <FONT face="Times New Roman">

</FONT>  现在,我们只要直接执行这个<FONT face="Times New Roman">*.bat</FONT>文件,所有的更新程序都会按照批处理文件中的顺序自动安装,你只需在所有更新安装结束后重新启动系统即可。  <FONT face="Times New Roman">

</FONT>  附:验证<FONT face="Times New Roman">Windows 2000</FONT>和<FONT face="Times New Roman">Windows XP</FONT>修复程序的安装  <FONT face="Times New Roman">

</FONT>  如果安装了以前串联的更新而没有重新启动系统,那么我们可以使用<FONT face="Times New Roman">Qfecheck</FONT>.<FONT face="Times New Roman">exe</FONT>工具验证计算机是否具有你认为已安装的所有修复程序,下载地址为<FONT face="Times New Roman">http://www.microsoft.com/downloads/details</FONT>.<FONT face="Times New Roman">aspx?display-lang</FONT>=<FONT face="Times New Roman">en&amp;FamilyID=155C7C58-102E-47B0-A12A-BFAB8CFCCC03</FONT>,这同样是微软官方发布的一个命令行工具,可以提高网络管理员跟踪和验证已安装的<FONT face="Times New Roman">Windows 2000</FONT>和<FONT face="Times New Roman">Windows XP</FONT>修复程序的能力。  <FONT face="Times New Roman">

</FONT>  <FONT face="Times New Roman">Qfecheck</FONT>.<FONT face="Times New Roman">exe</FONT>通过读取存储在以下注册表项中的信息来确定安装了哪些修复程序:  <FONT face="Times New Roman">

</FONT>  <FONT face="Times New Roman">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates</FONT>,通过使用由所安装的各个修复程序存储在此项中的文件版本信息,<FONT face="Times New Roman">Qfecheck</FONT>.<FONT face="Times New Roman">exe</FONT>工具可检查所安装的二进制文件以验证它们是否匹配。</P>




欢迎光临 银屑病病友互助网 (https://www.yxb365.com/) Powered by Discuz! X3.2