这关系到微软操作系统里面自带的 expand.exe 命令。
要解压缩MSU文件,需要用到“-F”参数。以下是例子,例如,我们在的 d:spgoo.com 下面建立一个临时文件夹,解开msu压缩
D:spgoo.com>mkdir msu
D:spgoo.com>expand -F:* Windows6.0-KB929761-x86.msu D:/spgoo.com/msu
以上命令会输出:
Adding D:/spgoo.com/msu/WSUSSCAN.cab to Extraction Queue
Adding D:/spgoo.com/msu/Windows6.0-KB929761-x86.cab to Extraction Queue
Adding D:/spgoo.com/msu/Windows6.0-KB929761-x86-pkgProperties.txt to Extraction Queue
Adding D:/spgoo.com/msu/Windows6.0-KB929761-x86.xml to Extraction Queue
就会解开这个压缩包
此时.cab文件还未解压缩,仍需要继续,命令如下:
D:spgoo.com>expand -F:* D:/spgoo.com/msu/Windows6.0-KB929761-x86.cab D:/spgoo.com/msu
Adding D:/spgoo.com/msu/update.mum to Extraction Queue
Adding D:/spgoo.com/msu/x86_microsoft-windows-wusa_31bf3856ad364e35_6.0.6000.20496_no ne_ab489c6034d78613.manifest to Extraction Queue
Adding D:/spgoo.com/msu/x86_microsoft-windows-wusa_31bf3856ad364e35_6.0.6000.16400_no ne_ab1a4f0b1b764fed.manifest to Extraction Queue
Adding D:/spgoo.com/msu/update-bf.mum to Extraction Queue
Adding D:/spgoo.com/msu/x86_microsoft-windows-wusa.d_31bf3856ad364e35_6.0.6000.20496_ none_4632ef2815ba2cfd.manifest to Extraction Queue
Adding D:/spgoo.com/msu/x86_microsoft-windows-wusa.d_31bf3856ad364e35_6.0.6000.16400_ none_4604a1d2fc58f6d7.manifest to Extraction Queue
Adding D:/spgoo.com/msu/update.cat to Extraction Queue
Adding D:/spgoo.com/msu/update-bf.cat to Extraction Queue
这样,10个.cab压缩包里面的文件也展开了。