Multiplatform UUP converter
Go to file
2024-09-19 19:35:08 +03:00
convert_ve_plugin v0.6.5 2021-10-10 03:53:49 +03:00
convert.sh v0.7.3 2024-09-19 19:35:08 +03:00
LICENSE Initial commit 2018-12-23 22:26:44 +01:00
readme.md readme.md: include aria2 consistently, give MacPorts instructions 2023-05-15 16:17:26 -04:00

UUP converter

Description

A basic UUP converter aimed at Linux and macOS users who don't have access to any Windows machine, but want or need to create an ISO image for latest Windows Insider version downloaded from UUP dump.

For obvious reasons this script will never support integration of Cumulative Updates to created images.

Usage

./convert.sh [compression] [uups_directory] [create_virtual_editions]
compression options:
  • wim - standard wim compression (/Compress:max in DISM) (default)
  • esd - solid esd compression (/Compress:recovery in DISM)
create_virtual_editions options:
  • 0 - do not create virtual editions (default)
  • 1 - create virtual edtitions

Usage examples

  • ./convert.sh - starts the conversion using files from UUPs directory and creates an ISO image with install.wim

  • ./convert.sh esd - starts the conversion using files from UUPs directory and creates an ISO image with install.esd

  • ./convert.sh wim MyUUP - starts the conversion using files from MyUUP directory and creates an ISO image with install.wim

  • ./convert.sh wim MyUUP 1 - starts the conversion using files from MyUUP directory, creates virtual editions and creates an ISO image with install.wim

Virtual editions

Since version 0.5.0 this script supports creation of virtual editions. To run creation of all virtial editions simply use create_virtual_editions switch in command line. If you want to customize which editions will be created when this switch is set, please use VIRTUAL_EDITIONS_LIST in configuration file.

Virtual editions creation can be only done when convert_ve_plugin is present in the same directory as converter.

Thanks to abbodi1406 for providing informations which helped with creating this option.

Configuration file

Configuration of advanced script options can be modified using the file convert_config_linux (on Linux) or convert_config_macos (on macOS).

Configuration options
VIRTUAL_EDITIONS_LIST='space delimited editions sequence'
Configuration options explanation
  • VIRTUAL_EDITIONS_LIST - configures which editions will be created when create_virtual_editions is enabled.

Requirements

This script uses the following commands to do its work:

  • aria2c - to download the required files
  • cabextract - to extract cabs
  • wimlib-imagex - to export files from metadata ESD
  • chntpw - to modify registry of first index of boot.wim
  • genisoimage or mkisofs - to create ISO image
Linux

Prerequisites can be installed using the distribution's package manager.

Debian-based distributions, including Ubuntu
sudo apt install aria2 cabextract wimtools chntpw genisoimage
Arch Linux
sudo pacman -S aria2 cabextract wimlib chntpw cdrtools
Fedora
sudo dnf install aria2 cabextract wimlib-utils chntpw genisoimage

If you use any other distribution, then you will need to check its repository for packages needed to run this script.

macOS

macOS requires a package manager such as MacPorts or Homebrew to install the prerequisite software. With a package manager installed, you can install the prerequisites.

MacPorts
sudo port install aria2 cabextract cdrtools chntpw wimlib
Homebrew
brew tap sidneys/homebrew
brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw