Jump to content

Windows 7 DISM & driver packages


Recommended Posts

Thanks for your reply, MrJinje, much appreciate. Unfortunately, Catalyst drivers aren't on the OS (windows 7) due to lack of ATI graphics card.

I'm able to integrated other drivers i.e. Ethernet, Audio, Chipset, etc. The only obstacle that stand in the way of completing an unattended

Windows 7 DVD that I'm working for a custom built PC (WIP), is the ATI Catalyst driver. Ugh! I just thought if anyone had any solution.....

Thanks.

Link to comment
Share on other sites

  • 2 months later...

Since this thread already exist's, ill ask here:)

Is there a simple full complete list of all DISM commands somewhere ?

I know all of them are on technet's website but im thinking a better and "more simpler" must exist, right?

Link to comment
Share on other sites

This may help just copied from cmd window.


DISM.exe [dism_options] {WIM_command} [<WIM_arguments>]
DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options]
{servicing_command} [<servicing_arguments>]

DESCRIPTION:

DISM enumerates, installs, uninstalls, configures, and updates features
and packages in Windows images. The commands that are available depend
on the image being serviced and whether the image is offline or running.

WIM COMMANDS:

/Get-MountedWimInfo - Displays information about mounted WIM images.
/Get-WimInfo - Displays information about images in a WIM file.
/Commit-Wim - Saves changes to a mounted WIM image.
/Unmount-Wim - Unmounts a mounted WIM image.
/Mount-Wim - Mounts an image from a WIM file.
/Remount-Wim - Recovers an orphaned WIM mount directory.
/Cleanup-Wim - Deletes resources associated with mounted WIM
images that are corrupt.

IMAGE SPECIFICATIONS:

/Online - Targets the running operating system.
/Image - Specifies the path to the root directory of an
offline Windows image.

DISM OPTIONS:

/English - Displays command line output in English.
/Format - Specifies the report output format.
/WinDir - Specifies the path to the Windows directory.
/SysDriveDir - Specifies the path to the system-loader file named
BootMgr.
/LogPath - Specifies the logfile path.
/LogLevel - Specifies the output level shown in the log (1-4).
/NoRestart - Suppresses automatic reboots and reboot prompts.
/Quiet - Suppresses all output except for error messages.
/ScratchDir - Specifies the path to a scratch directory.

For more information about these DISM options and their arguments, specify an
option immediately before /?.

Examples:
DISM.exe /Mount-Wim /?
DISM.exe /ScratchDir /?
DISM.exe /Image:C:\test\offline /?
DISM.exe /Online /?



DISM.exe /Mount-Wim /?


/Mount-Wim /WimFile:<path_to_WIM_file>
{/Index:<image_index> | /Name:<image_name>}
/MountDir:<target_mount_directory> [/readonly]

Mounts the WIM file to the specified directory so that it is available for
servicing. /ReadOnly sets the mounted image with read-only permissions.

Examples:
DISM.exe /Mount-Wim /WimFile:C:\test\images\myimage.wim /index:1
/MountDir:C:\test\offline

DISM.exe /Mount-Wim /WimFile:C:\test\images\myimage.wim /index:1
/MountDir:C:\test\offline /ReadOnly



DISM.exe /ScratchDir /?


/ScratchDir:<path_to_directory>

Specifies a temporary directory to be used for extracting files for
servicing. The directory must exist.

If not set, the temporary directory will be used.

Example:
DISM.exe /Image:C:\test\offline /scratchdir:D:\Scratch





DISM.exe /offline /?


No help topic could be found for the offline option.
Specify an image to see relevant help topics, using either the /Image or
/Online command-line option:

/Image:<path_to_offline_image>

This is the path to the root directory of the offline Windows image.

Example:
DISM.exe /Image:C:\test\offline /?

/Online

Specifies that the operation is to be performed against the running Windows
installation.

Example:
DISM.exe /Online /?



The following commands may be used to service the image:

WINDOWS EDITION SERVICING COMMANDS:

/Set-ProductKey - Populates the product key into the offline image.
/Get-TargetEditions - Displays a list of Windows editions that an
image can be upgraded to.
/Get-CurrentEdition - Displays the editions of the specified image.
/Set-Edition - Upgrades the Windows image to a higher edition.

UNATTEND SERVICING COMMANDS:

/Apply-Unattend - Applies an unattend file to an image.

DRIVER SERVICING COMMANDS:

/Remove-Driver - Removes driver packages from an offline image.
/Add-Driver - Adds driver packages to an offline image.
/Get-DriverInfo - Displays information about a specific driver
in an offline image or a running operating system.
/Get-Drivers - Displays information about all drivers in
an offline image or a running operating system.

INTERNATIONAL SERVICING COMMANDS:

/Set-LayeredDriver - Sets keyboard layered driver.
/Set-UILang - Sets the default system UI language that is used
in the mounted offline image.
/Set-UILangFallback - Sets the fallback default language for the system
UI in the mounted offline image.
/Set-UserLocale - Sets the user locale in the mounted offline image.
/Set-SysLocale - Sets the language for non-Unicode programs (also
called system locale) and font settings in the
mounted offline image.
/Set-InputLocale - Sets the input locales and keyboard layouts to
use in the mounted offline image.
/Set-TimeZone - Sets the default time zone in the mounted offline
image.
/Set-AllIntl - Sets all international settings in the mounted
offline image.
/Set-SKUIntlDefaults - Sets all international settings to the default
values for the specified SKU language in the
mounted offline image.
/Gen-LangIni - Generates a new lang.ini file.
/Set-SetupUILang - Defines the default language that will be used
by setup.
/Get-Intl - Displays information about the international
settings and languages.

APPLICATION SERVICING COMMANDS:

/Check-AppPatch - Displays information if the MSP patches are
applicable to the mounted image.
/Get-AppPatchInfo - Displays information about installed MSP patches.
/Get-AppPatches - Displays information about all applied MSP patches
for all installed applications.
/Get-AppInfo - Displays information about a specific installed MSI
application.
/Get-Apps - Displays information about all installed MSI
applications.

PACKAGE SERVICING COMMANDS:

/Add-Package - Adds packages to the image.
/Remove-Package - Removes packages from the image.
/Enable-Feature - Enables a specific feature in the image.
/Disable-Feature - Disables a specific feature in the image.
/Get-Packages - Displays information about all packages in
the image.
/Get-PackageInfo - Displays information about a specific package.
/Get-Features - Displays information about all features in
a package.
/Get-FeatureInfo - Displays information about a specific feature.
/Cleanup-Image - Performs cleanup and recovery operations on the
image.

For more information about these servicing commands and their arguments,
specify a command immediately before /?.

Examples:
DISM.exe /Image:C:\test\offline /Apply-Unattend /?
DISM.exe /Image:C:\test\offline /Get-Features /?
DISM.exe /Online /Get-Drivers /?



Link to comment
Share on other sites

  • 3 months later...

I tried using W7_DRVPREP made by razormoon to prep the latest catalyst driver 10.8 so I can inject it to my wim file using dism but to no avail, but the previous version of the catalyst driver v. 10.7 works. I also tried using the expand command w/ no luck. Can anybody give me pointers on how to inject the latest driver from amd v. 10.8 on win7 x64 using dism? Thanks...

Link to comment
Share on other sites

I think you are referring to how to make sure you have backed up the driver for injecting...go to %WinDir%\System32\DriverStore\FileRepository (after you have installed your driver the normal way) and sort by date and you should find your driver right there at the top, copy the folder to your desktop and delte the .PNF file and you have your driver for integrating

Sorry for the double post, always get edit and reply buttons mixed up

Edited by ricktendo64
Link to comment
Share on other sites

  • 9 months later...

Fixed... for me at least

Had the same problem

SPFQNOTIFY_COPYERROR

when trying to inject ATI Radeon video drivers into my Windows 7 x64 mounted WIM file

It stated that the source file was not present

uppon closer examination.. the error message stated that it could not find blahh.dll

but there was a blahh.dl_ (the compressed version of blah.dll)

Fix

Fixed it by downloading/installing 7-zip

selecting all files in the drivers directory in the Explorer file browser (*.dl_, *.ex_...) which are individually compressed

right clicking and choosing "extract Here"

7-zip was smart enough to decompress the files and rename them properly ...Example. blahh.dl_ decompressed and became blahh.dll, blahh.ex_ decompressed and became blah.exe

I tried injecting the drivers again and it worked this time without error

Edited by Tripredacus
Link to comment
Share on other sites

You can't inject the standard ATI INFs with DISM because the INF will try to install CCC, Display Switch or something else. Read the INF to see, DISM can't install a program. Windows can expand the files in the INF that allows a program to be installed. If you want to ATI or nVidia (besides SMUC) you need custom drivers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...