无约而来的oemlogo包怎么调用

准备工作:

我们以这两个原版ISO为例(前者64位、后者32位):

cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.ISO

cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.ISO

首先,你得OEM资料包,下载:/down/index/10408419

AIK官方下载 _windows_7_ultimate_with_sp1_x64_dvd_u_677408.ISO的SOURCES目录下的install.wim提取到到某分区,假定为E分区(别太小了,这分区要有30G以上空闲空间),提取后,install.wim改名为X64.WIM。用ULTRAISO将cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.ISO的SOURCES目录下的install.wim提取到到某分区,假定为E分区,提取后,install.wim改名为X86.WIM。

2、假定你不喜欢启用ADMIN,那么将最新下载的OEM包中的"x86_x64_loader"提取到E分区。

3、在工作目录内建一个批处理(如A.CMD,/down/index/10502462),A.CMD的内容(附后)。

4、如果是使用PE,先启动光盘PE,进入桌面,将A.CMD复制到X:\Program Files\PETOOLS目录,再运行A.CMD。右键"以管理员身份"运行A.CMD(最好是直接使用Administrator帐号),等待一些时间。机器性能一般的要有耐心。

5、处理结束后,先后x64.wim和x86.wim改名为install.wim,先后分别替换进cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.ISO和cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.ISO这个ISO的SOURCES目录中。另存(另存之前记得删除sources目录下的ei.cfg文件)。另存得到的ISO中的install.wim中已经内置了OEM资料包了。

A.CMD的内容如下(基本原理是:挂载WIM文件,将$OEM$下的$$目录下的所有文件夹或文件复制到WIM挂载目录的WINDOWS目录下,解除挂载,将OEM资内置到WIM文件内)

md e:\wimmount

echo 处理64位的wim文件

imagex /mountrw e:\x64.wim 1 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x64.wim 2 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x64.wim 3 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x64.wim 4 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

echo 处理32位的wim文件

imagex /mountrw e:\x86.wim 1 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x86.wim 2 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x86.wim 3 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x86.wim 4 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

imagex /mountrw e:\x86.wim 5 e:\wimmount

xcopy e:\x86_x64_loader\$OEM$\$$ e:\wimmount\windows /e /y

imagex /unmount e:\wimmount /commit

echo 处理结束

rd e:\wimmount

pause

注:在批处理中,如果文件夹名称中有空格的,如 e:\x86_Admin_loader_NO LOGO,在批处理路径中要加上英文的双引号以示区别。以下是示例。

xcopy "e:\x86_Admin_loader_NO LOGO\$OEM$\$$" e:\wimmount\windows /e /y

又如:copy e:\a.txt "C:\Program Files\A" /y (将E盘的A.TXT文件复制到C盘的“Program Files“这一目录下的A文件夹内)