WES 7是支持离线安装的,离线安装比较起在线安装有好几个优点:

1)可以减少对内存的需求,

2)可以在没有机器的情况下进行安装。

其大体过程就是使用DISM工具打开默认的install.wim这个镜像文件,并添加configuration set 文件进去,然后在用p_w_picpathx打包成wim文件。把这个wim文件还原到目标设备上之后就OK了。

实现步骤如下:
1)   创建一个answer files/configuration set
 

2)应用这个configuration set & capturing this p_w_picpath
A: copy install.wim files 到 configuration set folder .通常这个文件是处在:windows embedded standard 7 / DS的文件目录下。
B: 把configuration set 应用到 install.wim镜像里面去。
>mkdir mount
>dism /mount-wim /wimfile:install.wim /index:1 /mountdir:mount
现在WIM已经mount上了,应用configuration set ,并且创建了一个新的镜像:custom_p_w_picpath.wim。
>dism /p_w_picpath:mount /apply-unattend:AutoUnattend.xml
>p_w_picpathx /capture mount custom_p_w_picpath.wim “My Custom Image”
卸载掉挂载的mount 文件夹。
dism /unmount-wim /mountdir:mount /COMMIT
 
3)   发布镜像。
把重新生成的custom_p_w_picpath.wim使用到目标设备上去。
A:你需要一个USB启动进入IBW, 然后用p_w_picpathx 工具custome_p_w_picpath镜像发布到你的目标硬盘就可以了。
x:\p_w_picpathx.exe /apply d:\p_w_picpaths\myp_w_picpath.wim 1 c:
B:使用BCDBoot工具去update BCD store 区块
Bcdboot.exe D:\windows /s D:    (这里的D指的是还原到目标设备上的启动盘符)
C:使用BOOTSECT工具进行更新mbr区块。
Bootsect /nt60    c: /mbr
 
注意:
如果DISM失败的话,可以使用dism /cleanup-wim这个指令来清除历史记录,不然以后的dism指令都会失败的