|
OK,我明白了。马上怎加一条命令或者工具,用于自动打包生成驱动,不再需要改名、InfCacheBuild 什么的了。
自动:
修改文件中的 CopyFiles;保证直接安装成功。
修改文件中的 DeviceID 为大写;提高驱动搜索速度。
帮你把整个目录打包成为 CAB,最高压缩率。
WinCAB 的生成 CAB 原来是这样的,果然有“脚本”:
.OPTION EXPLICIT
.Set InfFileName="D:\Data\Temp\WinCAB.INF"
.Set RptFileName="D:\Data\Temp\WinCAB.RPT"
.Set DestinationDir=
.Set CabinetName1="Default.cab"
.Set CabinetNameTemplate="Default*.cab"
.Set DiskDirectoryTemplate="D:\"
.Set UniqueFiles=OFF
.Set FolderSizeThreshold=2147483648
.Set MaxDiskSize=0
.Set Cabinet=on
.Set Compress=on
.Set CompressionType=LZX
.Set CompressionMemory=21
"D:\VGADRV\ATI\0CX_29124.INF" "ATI\0CX_29124.INF"
"D:\VGADRV\ATI\ATI2CQAG.DLL" "ATI\ATI2CQAG.DLL"
"D:\VGADRV\ATI\ATI2DVAG.DLL" "ATI\ATI2DVAG.DLL"
"D:\VGADRV\ATI\ATI2MTAG.SYS" "ATI\ATI2MTAG.SYS"
"D:\VGADRV\INTEL\0INTELDISP.INF" "INTEL\0INTELDISP.INF"
"D:\VGADRV\INTEL\IALMDD5.DLL" "INTEL\IALMDD5.DLL"
"D:\VGADRV\INTEL\IALMDEV5.DLL" "INTEL\IALMDEV5.DLL"
"D:\VGADRV\INTEL\IALMDNT5.DLL" "INTEL\IALMDNT5.DLL"
"D:\VGADRV\INTEL\IALMNT5.SYS" "INTEL\IALMNT5.SYS"
"D:\VGADRV\INTEL\IALMRNT5.DLL" "INTEL\IALMRNT5.DLL"
"D:\VGADRV\NVIDIA\0NV4_DISP.INF" "NVIDIA\0NV4_DISP.INF"
"D:\VGADRV\NVIDIA\NV4_DISP.DLL" "NVIDIA\NV4_DISP.DLL"
"D:\VGADRV\NVIDIA\NV4_MINI.SYS" "NVIDIA\NV4_MINI.SYS"
[ 本帖最后由 Yonsm 于 2007-1-8 02:07 PM 编辑 ] |
|