微信扫一扫 分享朋友圈

已有 6629 人浏览分享

开启左侧

XPlode制作Windows安装光盘方法

[复制链接]
6629 0
XPlode制作Windows安装光盘方法

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

下面介绍用法:

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

Quote:

$oem$

$oem$

$oem$INSTALL

$oem$INSTALLXPlode.EXE

$oem$INSTALLXPlode.XML

$oem$INSTALLXPlodeOriginalInstall.x4d

$oem$INSTALLXPlodeSilentInstall.x4d

$oem$INSTALLXPlodeGFXInstall.x4d

$oem$INSTALLXPlodeSelectInstall.x4d

$oem$INSTALLXPlodeAcctMgmt.x4e

$oem$INSTALLXPlodeExecute.x4e

$oem$INSTALLXPlodeFileOps.x4e

$oem$INSTALLXPlodeMisc.x4e

$oem$INSTALLXPlodeRegistry.x4e

$oem$INSTALLIMAGESfoot.png

$oem$INSTALLIMAGEShead.png

$oem$INSTALLIMAGESmain.png

$oem$INSTALLUpdata

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

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


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

XPlode.XML
Copy 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#imageshead.png' />
  <footer back='#003399' fore='#FFFFFF' image='#XPLODE#imagesfoot.png' />
  <progress border='#000000' back='#FFFFFF' fore='#008800' fore2='#00AA00' />
  <main back='#6699FF' fore='#FFFFFF' current='#FFFF00' description='#FFFFFF' image='#XPLODE#imagesmain.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#UpdataWMP10.exe</program>
  <arguments>/Q:A /c:"setup_wm.exe /DisallowSystemRestore /Q /R:N"</arguments>
  </execute>

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

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

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

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

  <execute display="? Installing MSJavaVM 请稍后...">
  <program>#XPLODE#hotfixMSJavWU.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>


说明:
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]
".INSTALLXPlode.exe"




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

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

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



用XPlodeSelectInstall.x4d控件来做的话就把以下的代码替换以下就可以了!
Copy 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>

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

在安装过程中使用中文的话就把XPlode.xml的保存为unicode编码即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

关注

21

粉丝

0

主题
精彩推荐
热门资讯
网友晒图
图文推荐
  • 微信公众平台

  • 扫描访问手机版

Archiver|手机版|小黑屋|水窝ibm

GMT+8, 2025-6-30 00:50 , Processed in 0.072560 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2022 Comsenz Inc.