A. If you have a cabinet (.cab) file containing a package you want to add to an offline image, use the Deployment Image Servicing and Management (DISM) command and the /add-package switch. For example,
dism /image:<mount path> /add-package /packagepath:<location and name of .cab or .msu file>
Likewise, you can remove an installed .cab file (but not a .msu) from an offline-mounted image by replacing /add-package with /remove-package.