Make sure you read the DISM
documentation, specifically look at the /Add-Package command line. You would mount the WIM file and image number, then use /Add-Package to add the .msu packages to the .WIM file, then unmount the WIM.
To gather information on a .WIM file (image index, names, etc):
CODE
DISM /Get-WimInfo /WimFile:<DriveLetter:\full\path\to\.wim\file.wim>
To mount a .WIM file:
CODE
DISM /Mount-Wim /WimFile:<DriveLetter:\full\path\to\.wim\file.wim> /index:<1,2,etc> /MountDir:<DriveLetter:\path\to\temporary\mount\folder>
To add .msu packages to a mounted .WIM file:
CODE
DISM /Image:<DriveLetter:\path\to\temporary\mount\folder> /LogPath:AddPackage.log /AddPackage /PackagePath:<DriveLetter:\full\path\to\folder\containing\all\msu\packages>
To unmount and commit the changes to the .WIM file:
CODE
DISM /Unmount-Wim /MountDir:<DriveLetter:\path\to\temporary\mount\folder> /commit
You can find all the DISM command-line options
here.