A
A
Andrey Akimov2018-05-29 20:04:20
cmd/bat
Andrey Akimov, 2018-05-29 20:04:20

How to install (integrate) DISM 10 on Windows 7, replacing the "native" DISM 6.1?

I write command interpreter scripts ( CMD ) to create "assemblies" of Windows by executing DISM commands (integrate updates, disable components, compress, export, etc.). You can serve offline Windows images (wim files) with a DISM version no lower than the image itself! The problem is that Windows 7 is installed on my main computer, and if I need to process an image of Windows 8.1 or 10, then I have to install the desired OS on the test computer and build the "assembly" on it.
On Windows 7, you can install, for example, the latest ADK for Windows 10 (1803), which contains DISM 10. But the dism.exe fileThe new version does not replace the one shipped with Windows 7, but is located in the "Windows Kits" installation folder. This creates a shortcut in the Start menu to launch a command shell with "special options" from where DISM 10 features become available by "manual" command entry. Naturally, automatic execution of DISM 10 commands from the script is not available, since the system, if the dism command is found in the script, refers to the "native" DISM 6.1.
How can I make it possible to serve offline images of new OS versions under Windows 7?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Akimov, 2018-05-29
@Ostan

The solution is this: you do not need to replace the "native" DISM of the seven, but you can simply make changes to the PATH. Up to the %SystemRoot%\system32 setting; you need to enter the following data: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM;
Works!
Z.Y.
In the work it turned out that not everything works! So, for example, the command DISM /Get-ProvisionedAppxPackage - view the list of universal applications was not executed from the script. In the error log: unable to load msi.dll , missing /Get-ProvisionedAppxPackage command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question