xplode,XPlode集成软件和补丁的方法

XPlode集成软件和补丁的方法 - 故障解答 - 电脑教程网

XPlode集成软件和补丁的方法

日期:2006-11-12   荐:
XPlode制作Windows安装光盘方法 ,小三的补丁集就是这么做的哦

各位如果有兴趣,可以交流一下谁做的更棒

这是一种老外发明的安装系统补丁的方式(以前名叫XPinstall),
它是在系统安装剩余12分钟时执行的,通过读取XPlode.XML来调用的。

下面介绍用法:

它在执行时会弹出一个提示框,正在执行的安装会以高亮显示。目录规则:

QUOTE:

$oem$\

$oem$\

$oem$\INSTALL

$oem$\INSTALL\XPlode.EXE

$oem$\INSTALL\XPlode.XML

$oem$\INSTALL\XPlodeOriginalInstall.x4d

$oem$\INSTALL\XPlodeSilentInstall.x4d

$oem$\INSTALL\XPlodeGFXInstall.x4d

$oem$\INSTALL\XPlodeSelectInstall.x4d

$oem$\INSTALL\XPlodeAcctMgmt.x4e

$oem$\INSTALL\XPlodeExecute.x4e

$oem$\INSTALL\XPlodeFileOps.x4e

$oem$\INSTALL\XPlodeMisc.x4e

$oem$\INSTALL\XPlodeRegistry.x4e

$oem$\INSTALL\IMAGES\foot.png

$oem$\INSTALL\IMAGES\head.png

$oem$\INSTALL\IMAGES\main.png

$oem$\INSTALL\Updata\


其中XPlode.EXE和XPlode.XML是它的执行文件和脚本文件
IMAGES目录中放的是它的外观图片
Updata目录放的是系统补丁

XPlodeOriginalInstall.x4d就是调用IMAGES目录下的图片文件来做背景图
XPlodeSilentInstall.x4d就是无界面安装
XPlodeGFXInstall.x4d就是背景透明安装
XPlodeSelectInstall.x4d就是可选择安装


接下来要说明的是XPlode.XML了

XPlode.XML

CODE:

<XPlode4>
<config>
<environment>  
<display.title>Windows 安装补丁</display.title>
<display.complete>completed</display.complete>
<acctmgmt.adduser>Adding user: #1#</acctmgmt.adduser>
<acctmgmt.deluser>Deleting user: #1#</acctmgmt.deluser>
<acctmgmt.addgroup>Adding group: #1#</acctmgmt.addgroup>
<acctmgmt.delgroup>Deleting group: #1#</acctmgmt.delgroup>
<execute.string>Executing: #1#</execute.string>
<misc.sfcos-disable>Disabling Windows File Protection</misc.sfcos-disable>
<misc.sfcos-enable>Enabling Windows File Protection</misc.sfcos-enable>
<registry.read>Reading from registry</registry.read>
<registry.write>Writing to registry</registry.write>
</environment>

<display plugin='#XPLODE#\XPlodeOriginalInstall.x4d'>
<show total='6' after='4' subcount='true' />
<font face='Tahoma' antialias='true' small='8' large='13' />
<window width='440' position='6' fixmain='0' />
<windowmode mode='standalone' border='false' />
<colours>
<header back='#003399' fore='#FFFFFF' image='#XPLODE#\images\head.png' />
<footer back='#003399' fore='#FFFFFF' image='#XPLODE#\images\foot.png' />
<progress border='#000000' back='#FFFFFF' fore='#008800' fore2='#00AA00' />
<main back='#6699FF' fore='#FFFFFF' current='#FFFF00' description='#FFFFFF' image='#XPLODE#\images\main.png' overlay='#FFFFFF22' />


</colours>
</display>
</config>
<items>
<item display="? 建立默认用户">
<adduser display="? 建立用户中 请稍后...">
<username>碧海蓝天</username>
<group>Administrators</group>
</adduser>
</item>

<item display="? 安装 WinRAR ">

<execute display="? 正在安装 WinRAR 请稍后...">
<program>#XPLODE#\Wrar.exe</program>
<program>#XPLODE#\Wrar.exe</program>
</execute>
</item>

<item display="? 安装 Windows主题">
<execute display="? 正在安装 Windows主题 请稍后...">
<program>#XPLODE#\BLUE.EXE</program>
<arguments>/S</arguments>
</execute>
</item>

<item display="? 安装Windows更新程序">

<execute display="? 正在安装 Windows Media Player 10 请稍后...">
<program>#XPLODE#\Updata\WMP10.exe</program>
<arguments>/Q:A /c:"setup_wm.exe /DisallowSystemRestore /Q /R:N"</arguments>
</execute>

<execute display="? 正在安装 KB834707 请稍后...">
<program>#XPLODE#\Updata\KB834707.exe</program>
<arguments>/quiet /norestart /n</arguments>
</execute>

<execute display="? 正在安装 KB867282 请稍后...">
<program>#XPLODE#\Updata\KB867282.exe</program>
<arguments>/quiet /norestart /n</arguments>
</execute>

。。。。。。补丁就不一一列举了,自己替换文件名

<execute display="? Installing MSJavaVM 请稍后...">
<program>#XPLODE#\hotfix\MSJavx86.exe</program>
<arguments>/Q:A /R:N</arguments>
</execute>

<execute display="? Installing MSJavaVM 请稍后...">
<program>#XPLODE#\hotfix\MSJavWU.exe</program>
<arguments>/Q:A /R:N</arguments>
</execute>

</item>

<item display="? 注册表优化">
<execute display="? 注册表优化中 请稍后...">
<program>regedit</program>
<arguments>/s "#XPLODE#\BLUE.REG"</arguments>
</execute>
</item>
</items>
</XPlode4>

[Copy to clipboard]


说明:

QUOTE:

config为安装时窗体的显示设置
window width='420' height='180' position='6' 这一行它的意思如下:
1:window width='420' height='180' 代表了显示界面的大小,宽420,高180 (一般可以不用设置height项!)
2:position='6'代表了显示界面是放在那个地方。如图所示:
0 1 2
3 4 5
6 7 8
要是0或9,或9以上的数字,那它都是在界面的左上角



QUOTE:

items为安装命令的设置部分

在items里面的item为在安装时在窗体中的主分支部分,其中语句中包含的安装语句可以为一个或多个!

在安装的语句中的'<execute display="? 注册表优化中 请稍后...">'是显示的信息,

<program>#XPLODE#\Wrar.exe</program> 是路径,<program>#XPLODE#\Wrar.exe</program>是安装的参数!



另外,想让它在剩余12分钟时运行,就必须在自动应答文件CMDLines.txt中加入以下字段:

[Commands]
".\INSTALL\XPlode.exe"




以上做的是用XPlodeOriginalInstall.x4d控件做的!

用XPlodeGFXInstall.x4d控件来做的话就把以下的代码替换以下就可以了!要是需要修改颜色的话就修改<colours>项里的fore的属性就可以了!

CODE:

<config>
<environment>
<display.title>XPlode Installation</display.title>
<display.complete>completed</display.complete>
<acctmgmt.adduser>Adding user: #1#</acctmgmt.adduser>
<acctmgmt.deluser>Deleting user: #1#</acctmgmt.deluser>
<acctmgmt.addgroup>Adding group: #1#</acctmgmt.addgroup>
<acctmgmt.delgroup>Deleting group: #1#</acctmgmt.delgroup>
<execute.string>Executing: #1#</execute.string>
<misc.sfcos-disable>Disabling Windows File Protection</misc.sfcos-disable>
<misc.sfcos-enable>Enabling Windows File Protection</misc.sfcos-enable>
<misc.netstart>Starting #1#</misc.netstart>
<misc.netstop>Stopping #1#</misc.netstop>
<registry.read>Reading from registry</registry.read>
<registry.write>Writing to registry</registry.write>
</environment>
<display plugin='#XPLODE#\XPlodeGFXInstall.x4d'>
<show total='6' after='4' subcount='true' />
<font face='Verdana' antialias='true' small='8' large='13' />
<window width='420' height='200' position='4' />
<windowmode border='true' ontop='false' />
<colours>
<header x='4' y='4' fore='#FFFFFF' />
<footer x='4' y='180' width='410' fore='#FFFFFF' />
<progress border='#000000' back='#FFFFFF' fore='#008800' />
<main x='16' y='40' width='388' fore='#FFFFFF' current='#FFFF00' description='#FFFF80' overlay='#FFFFFF44'/>
</colours>
</display>
</config>



[Copy to clipboard]

用XPlodeSelectInstall.x4d控件来做的话就把以下的代码替换以下
并在xplode.exe的所在目录下建立一个selection文件夹
在selection目录中建立一个select-frameset.html



用XPlodeSelectInstall.x4d控件来做的话就把以下的代码替换以下就可以了!

CODE:

<config>
<environment>
<acctmgmt.adduser>Adding user: #1#</acctmgmt.adduser>
<acctmgmt.deluser>Deleting user: #1#</acctmgmt.deluser>
<acctmgmt.addgroup>Adding group: #1#</acctmgmt.addgroup>
<acctmgmt.delgroup>Deleting group: #1#</acctmgmt.delgroup>
<execute.string>Executing: #1#</execute.string>
<misc.sfcos-disable>Disabling Windows File Protection</misc.sfcos-disable>
<misc.sfcos-enable>Enabling Windows File Protection</misc.sfcos-enable>
<registry.read>Reading from registry</registry.read>
<registry.write>Writing to registry</registry.write>
</environment>
<display plugin='#XPLODE#\XPlodeSilentInstall.x4d'/>
</config>

[Copy to clipboard]

需要用哪个控件就保留该控件,并把其他控件删除在集成在光盘上就可以了!

在安装过程中使用中文的话就把XPlode.xml的保存为unicode编码即可
标签: