分享

制作Windows 7 OEM多合一版本(下)

 ZackEdge 2015-02-05

灵活使用imagex常用命令可让我们事半功倍,更重要的是对于可能出现的一长串的批处理段落,你可能不再那么迷惑了。下面就是一个应用实例。

 二、Winodws 7 OEM多合一实例

(一)制作一个整合补丁和IE9的WIM文件

参考这里:http://zxkh19501.blog.163.com/blog/static/1237851792012635360717/

假定制作的WIM中的卷映像是Windows 7 专业版,假定这个WIM命名为x86pro.wim,现在已经转移到你的实机硬盘E分区,这E分区有足够的空闲空间够你腾挪(30G以上好一些,越大越好)。有了这个WIM文件,看看要如何制作出象http://zxkh19501.blog.163.com/blog/static/123785179201252671024602/这个的多合一版本,这个版本含有以下卷映像(版本)

Windows 7 专业版 32位 (Retail)

Windows 7 专业版 32位 (Thinkpad)

Windows 7 专业版 32位 (联想)

Windows 7 专业版 32位 (惠普)

Windows 7 专业版 32位 (戴尔)

Windows 7 专业版 32位 (华硕)

Windows 7 专业版 32位 (宏碁)

Windows 7 专业版 32位 (OEM通用)

Windows 7 专业版 32位 (OEM通用)(无LOGO)

(二)取得相应的OEM资料包

到这里下载:http://zxkh19501.blog.163.com/blog/static/12378517920126149350305/

在E分区建立一个文件夹,命名为E:\OEMLOGO_201207,然后将下载得到的ISO中的所有目录提取到 E:\OEMLOGO_201207里面。

制作Windows 7 OEM多合一版本(下) - 无约而来 - 无约而来

 (三)IMAGEX操作批处理

 在C:\Program Files\Windows AIK\Tools\x86目录内建一个CMD文件,内容如下(echo 所在一行文字是用来说明上行命令的含义的,实际操作时可删除此行,不删除也没有问题):

md E:\wimmount

imagex /info E:\x86pro.wim 1 "Windows 7 专业版 32位 (Retail)" “Windows 7 专业版”

echo  重命名 x86pro.wim 的1号卷映像(此时只有1号,没有2号3号...),第一个双引号中的是卷映像的名称,第二个双引号中的是对卷映像的描述说明。

imagex /mountrw E:\x86pro.wim 1 E:\wimmount

echo  将 x86pro.wim 的1号卷映像挂载到E:\wimmount,以便复制OEM资料,向x86pro.wim 添加一个卷映像。

xcopy E:\OEMLOGO_201207\BrandLogo\X86\Thinkpad\$OEM$\$$ E:\wimmount\windows /e /y

echo 将Thinkpad的OEM资料复制到E:\wimmount\windows 中,此时E:\wimmount与原先挂载的内容就有不同了,因为多出了Thinkpad的OEM资料,所以可以用/commit 和/append 组合,向 E:\x86pro.wim 添加一个卷映像,该卷映像将整合有Thinkpad的OEM资料。

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (ThinkPad)"

echo 执行添加卷映像命令,而且必须给新的卷映像命名。注意,新添加的卷映像名称不能与已经存在的卷映像相同。添加后,x86pro.wim 中就存在2个卷映像了。

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

echo  上述三行命令是删除挂载目录中的ThinkPad的OEM资料包。下一步我们添加另一个牌子的OEM资料包,挂载目录不需要ThinkPad的OEM资料包,已经内置到WIM的卷映像了。

echo  以上的所有命令行,已经完成了ThinkPad卷映像的添加了,下面将进行联想的卷映像添加工作。

xcopy E:\OEMLOGO_201207\BrandLogo\X86\LENOVO\$OEM$\$$ E:\wimmount\windows /e /y

echo  复制联想的OEM资料包到挂载目录。注意,路径中的“ThinkPad”已经改成“LENOVO”了。

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (联想)"

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

echo 上述四行命令是向E:\x86pro.wim 添加联想卷映像,添加结束后,删除挂载目录中的联想OEM资料包。此时,E:\x86pro.wim中又增加了一个卷映像,至此共有3个卷映像。

echo  以下是添加惠普、戴尔、华硕、宏碁的卷映像命令段落。不再解释,道理与上述相同。

xcopy E:\OEMLOGO_201207\BrandLogo\X86\HP\$OEM$\$$ E:\wimmount\windows /e /y

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (惠普)"

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

xcopy E:\OEMLOGO_201207\BrandLogo\X86\DELL\$OEM$\$$ E:\wimmount\windows /e /y

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (戴尔)"

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

 xcopy E:\OEMLOGO_201207\BrandLogo\X86\ASUS\$OEM$\$$ E:\wimmount\windows /e /y

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (华硕)"

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

 xcopy E:\OEMLOGO_201207\BrandLogo\X86\ACER\$OEM$\$$ E:\wimmount\windows /e /y

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (宏碁)"

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\System32\oobe\info

del /q /f E:\wimmount\Windows\Panther\unattend.xml

echo -----------------------添加OEM通用(自动识别与自动激活、启用ADMIN)--------------------------------

xcopy E:\OEMLOGO_201207\x86_Admin_loader\$OEM$\$$ E:\wimmount\windows /e /y

echo 复制的是x86_Admin_loader目录下的OEM资料包,该资料包能实现自动识别与自动激活、启用ADMIN的目的。

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (OEM通用)"

echo  上行所示,同样需要添加卷映像和进行卷映像命名

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\Setup\AIDA64

rd /q /s E:\wimmount\Windows\Setup\OEMFILES

del /q /f E:\wimmount\Windows\Setup\add_x86.exe

del /q /f E:\wimmount\Windows\Panther\unattend.xml

echo  rd 用于删除已经添加目录(文件夹),例如scripts是添加进来的,所以需要删除,不是你添加的,原先系统就有的目录不能删除。del用于删除文件。

xcopy E:\OEMLOGO_201207\x86_Admin_loader_NOLOGO\$OEM$\$$ E:\wimmount\windows /e /y

echo  无LOGO版本不等于就100%就不是OEM版本,OEM版本核心是用OEM SLPKEY和OEM证书来激活的,LOGO是为了让消费者更容易识别是哪个OEM厂商的产品,以区别其他厂商的产品。简单说无OEMLOGO的版本,有可能是OEM版本,也有可能不是。

imagex /commit /append E:\wimmount "Windows 7 专业版 32位 (OEM通用)(无Logo)"

echo  再添加一个卷映像。

rd /q /s E:\wimmount\Windows\Setup\scripts

rd /q /s E:\wimmount\Windows\Setup\AIDA64

rd /q /s E:\wimmount\Windows\Setup\OEMFILES

del /q /f E:\wimmount\Windows\Setup\add_x86.exe

del /q /f E:\wimmount\Windows\Panther\unattend.xml

echo 上述五行意义不大了,因为我们不再添加卷映像。

echo   我们要记住,到目前为此E:\x86pro.wim的1号卷映像Retail仍然挂载在E:\wimmount目录。接下来的事就是解除挂载。

imagex /unmount E:\wimmount

echo 此时不需要使用/commit,因为我们没打算去修改1号卷映像Retail。之所以挂载1号卷映像,不过是想借用挂载目录向WIM添加卷映像罢了。

echo  恭喜您,整合成功!按任意键退出

pause 1>nul

 (四)制作ISO

将上述处理好的x86pro.wim改名为install.wim,用UltraISO打开官方原版Windows 7 ISO,将E:\install.wim替换进官方原版ISO的SOURCES目录下,同时删除SOURCES目录下的ei.cfg文件,另存得到的ISO就是OEM多合一的WIN7专业版了。

如果你想给这个ISO添加个PE,参考:http://zxkh19501.blog.163.com/blog/static/123785179201251111015792/

(结束)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多