Install-wim-tweak.exe

Deep essay: install-wim-tweak.exe

Prerequisites:

  • Windows 11 installation ISO (or .wim file from sources\install.wim)
  • Windows ADK with DISM (or standalone DISM from Windows 10/11)
  • 20+ GB free disk space
  • install-wim-tweak.exe placed in an accessible folder (e.g., C:\tools)

Do NOT Remove:

  • Microsoft.Windows.ShellExperienceHost (breaks Start Menu)
  • Microsoft.Windows.StartMenuExperienceHost (critical for UI)
  • Microsoft.Windows.Cortana (if using Windows Search – removal breaks search bar)
  • Microsoft.Windows.SecurityHealth (breaks Windows Security Center)
  • Microsoft.Windows.Store (removing Store breaks many apps that rely on its licensing infrastructure, even if you never open the Store)

Prerequisites

  1. Download the tool from a trusted source (e.g., GitHub: antonioCoco/install-wim-tweak or MDL forums). The file is a single .exe.
  2. Windows ADK (Assessment and Deployment Kit) or at least dism.exe (built into Windows 10/11).
  3. Administrator privileges.
  4. A Windows WIM file (e.g., install.wim from a Windows ISO) – or you can target your live OS.

🧠 How Does It Work?

Windows uses a package repository to manage features. Many features (like legacy components, specific codecs, or telemetry services) are present on your hard drive but are "hidden" in the registry, preventing you from removing or enabling them via standard DISM commands.

The Magic Trick: The tool mounts the registry hive of the Windows image (or the running OS) and tweaks specific flags in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing key.

By changing the Visibility attribute of these packages, it tricks Windows into thinking they are standard, removable packages. This allows you to: install-wim-tweak.exe

  1. See packages normally hidden.
  2. Remove packages that cannot be uninstalled via the Control Panel.
  3. Enable features (like Telnet or NetFX 3.5) without downloading them, as the files are already on the disk.

5. No Undo by Default

The /d switch does not create a backup. You must manually back up the relevant registry keys before deletion.

What is install-wim-tweak.exe?

It is a command-line utility that manipulates the Component-Based Servicing (CBS) database within a Windows image. It allows you to: Deep essay: install-wim-tweak

  • Hide or unhide packages (features) in a mounted WIM.
  • Remove packages entirely (not recommended).
  • Reapply hidden packages after a Windows update.

Many "debloater" scripts use it to suppress Windows Defender or Edge in Windows 10/11.


Use Case 2: Bringing Back Windows Photo Viewer (Windows 10/11)

Microsoft hides the classic Photo Viewer by default, even though the binaries exist. Run: Windows 11 installation ISO (or

install-wim-tweak.exe /o /l

The /o flag re-enables hidden legacy components. Then, in Registry Editor, set:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations

Add .jpg, .png, etc., pointing to PhotoViewer.FileAssoc.Tiff.

2. Feature Update Breaks

When you upgrade from 21H2 to 22H2 (or 23H2), the Windows Setup may check for the presence of certain packages. If missing, the upgrade can revert changes, fail, or enter a repair loop.