Обновите установку Windows из командной строки [DISM / ImageX]

1780
Elmo

Одна из самых удивительных вещей, которые я узнал на этом сайте, - как установить Windows без использования установки из командной строки .

Теперь я хочу обновить установку Windows 10 build 10240 (в автономном разделе) до Windows 10 версии 1511, сборка 10586 * из командной строки с помощью dismили imagex.

Может кто-нибудь сказать мне, как это сделать?

DISM /Apply-Image /ImageFile:E:\sources\install.wim /Index:1 /ApplyDir:F:\ не удается с Access is denied.

DISM /Online /Get-TargetEditionsвыходы Educationи Enterpriseчто означает, что вы можете обновить только эти две редакции.

Если нет в автономном разделе, можно ли это сделать в онлайн / работающем разделе Windows?


* Я скачал ISO с MSDN en_windows_10_multiple_editions_version_1511_x64_dvd_7223712.iso

2
Надеюсь, вы открыли командную строку с повышенными правами. Ganesh R. 8 лет назад 0
@GaneshR. DISM не работает без возвышения. Этот доступ запрещен из-за невозможности изменить списки ACL для существующих файлов. Elmo 8 лет назад 0
`Для запуска DISM требуются повышенные разрешения. Используйте командную строку с повышенными привилегиями для выполнения этих задач. Elmo 8 лет назад 0
Я сомневаюсь, что DISM может быть использован для обновления. Программа установки также запускает другие инструменты для переноса пользовательских данных / настроек. Почему вы хотите сделать это с DISM? magicandre1981 8 лет назад 0
Если вы просто хотите обновить установку Windows, почему бы вам не смонтировать файл ISO -> запустить его и выполнить обновление на месте? Smeerpijp 8 лет назад 1

2 ответа на вопрос

1
Vinayak

I know nobody at SuperUser like to hear It's Impossible™ but unfortunately, it looks like that is the case with Windows (at the moment anyway).

Windows, unlike Linux doesn't have the provision to update files as they're being used. On Linux systems, you can install an update for a program is currently in use and unlike Windows, Linux doesn't require process termination in order to finish the update.

Linux systems will let you continue using the older version of the program until you close it of your own volition. The next time you start the program, it will have updated to the new version. Linux achieves this kind of 'in-place file modifications' like this:

When you open a file, the kernel follows the link, and assigns the inode a file descriptor (a number that it keeps track of internally). When you delete the file, you are "unlinking" the inode; the file descriptor still points to it.

You can create a new file with the exact same name as the old file after deleting it, effectively "replacing" it, but it will point to a different inode. Any programs that still have the old file open can still access the old file via the file descriptor, but you have effectively upgraded the program in place.

As soon as the program terminates (or closes the file), and starts up (or tries to access it again), it accesses the new file, and there you have it, a completely in-place replacement of a file!
Source: toolbox.com

This opens Linux to the possibility of installing system upgrades without having to reboot the machine, and not surprisingly Linux and UNIX users brag about how they haven't restarted their systems since George Bush Sr. was president.

However, it may not be that simple (even for *nix users) and the UNIX/Linux systems that make do without rebooting for years aren't your regular desktop computers. Tools like Ksplice and live-patching support introduced in Linux kernel 4 definitely make it easier though.

It seems like Windows has tried to reduce unnecessary reboots over time and the newest versions can upgrade many types of drivers without the need for rebooting but it's just not as flexible as Linux in this type of situations.

As for upgrading an offline Windows installation, I couldn't find much on that.

-1
Alex S

DISM/ ImageX is designed for working with Installable & Installed Windows Images as a whole.

But, it does not have any functionality to add updates to existing images.

Answer: It can not be done with DISM/ ImageX.

Note: As additional information I can suggest the following:

For that you need to get on the MDL forums and look at some threads:

  1. To use a tool to download updates and then
  2. Follow some update Slipstream-ing guides

There are many such tools on MDL, so I am not sure which one would fit best and work for your scenario as I have not updated to Win 10 and have used them on Win 7/8 only for slipstreaming updates & Service Packs.

A word of caution, as these were for Windows 7 & 8 where updates were pulled by clients from MS Servers, I am not sure how/ if they or their updated replacements can do the same for Windows 10, given how MS now pushes and controls updates differently.

Hopefully you can still download updates you want and choose.

Additional Alternatives:

http://www.winbuzzer.com/2015/08/02/slipstreaming-windows-10-how-to-create-up-to-date-windows-10-iso-files-with-all-available-hotfixes-patches-and-security-updates-xcxwbt/

www.ntlite.com

Я не хочу обновлять ISO, я хочу обновить существующую установку Windows 10 в другом разделе. Elmo 8 лет назад 0