Blogger Avatar

人間になりたい!!!!!


皖ICP备2025096275号

Windows Downgrade Perfect Solution: Keep your data and downgrade by the official installer

Preface

If we upgrade our Windows computer to a new stable or preview version and the 30-day rollback period has passed, using the official tool to downgrade is no longer possible. But with a slight modification to the official tool, you can downgrade while keeping your data. This article explains the exact procedure.


Principle

The compatibility check module of the Windows installer calls a dynamic library named setupcompat.dll to perform checks. This library contains all items the installer needs to verify. When the installer calls this module, it determines whether requirements are met by reading the return value. If not met, it shows an error; if met, it continues installation.
What we need to do is change the return value of the check for whether the system version is higher than the current version to always return 1, so the installer always believes the system version meets the requirement under any condition.

Notes

  • If you are downgrading from Windows 11 Dev to the Windows 11 stable version, it is recommended to downgrade gradually from the closest Dev build. Downgrading in one step may fail.
  • If you are downgrading from Windows 11 to Windows 10, remember to back up Windows App data.
  • Regardless of the version you downgrade from, back up all data on the system drive and create a restore point before starting!

Warning

  • This method only guarantees passing the installer’s checks. It does not guarantee successful installation or system stability. Any consequences caused by using this method are unrelated to the author!
  • Downgrading using this method may lead to system crashes, driver failures, or software malfunction. If not necessary, consider downgrading by clean installation instead.

Tools Used

  • IDA Pro
  • Original Windows ISO image

Main Section

1. Download the Image

  • Go to the UUP Dump website and select the version you want to download.
    UUP Dump
    UUP Dump
  • Choose your desired version and language.
  • For the download option, select Download and convert to ISO, then click Create download package.
    Create download package
    Create download package
  • A compressed package containing scripts will be downloaded. Extract it to a separate folder, then run uup_download_windows.cmd.
    The script will automatically download all required components and convert them into an installable .iso file. Just wait patiently. If download errors occur, simply run the script several times. Except for downloading aria2c, this step does not require a VPN/proxy.

2. Patch the File

  • Extract the generated .iso file completely to a separate folder, then find /sources/setupcompat.dll and move it to your desktop or another location.
  • Make a backup named setupcompat.dll.bak, then open IDA Pro and click Go to start.
    IDA Pro
    IDA Pro
  • Drag setupcompat.dll into IDA Pro. When a dialog appears, do not change any settings; click OK to enter the disassembly view.

    IDA Pro
    IDA Pro

    A dialog will ask whether to download the required PDB file from Microsoft servers. Click Yes.
    IDA Pro
    IDA Pro
  • In the assembly view, locate the Functions sidebar on the left. Click any item, then press Ctrl + F to search.
  • Search for the function IsLaterThan and double-click the only search result.
    IsLaterThan
    IsLaterThan
  • In the graph view on the right, scroll to the bottom and find the instruction shown in the image.
    Function
    Function
  • Right-click on the instruction mov eax, 1 and select Text view.
  • In Text view, place your cursor before the value 1 (as shown) and right-click → Manual. Change the value to 0.
    Change value
    Change value
  • Click OK to save.
  • Then go to EditPatch programAssemble..., click OK to apply, then close the window.
    Assemble...
    Assemble...
  • Next, go to EditPatch programApply patches to input file, and click OK.
    Apply patches to input file
    Apply patches to input file
  • If the lower-left corner shows Applied 1/1 patch(es), the modification was successful.

3. Apply the Patch

  • Replace the original setupcompat.dll file with your patched version. After replacing, run setup.exe again to start installation.
  • If everything was done correctly, the installer will no longer report a high-version error. The tutorial ends here.

Conclusion

  • After a successful rollback, handle follow-up tasks yourself, such as restoring data and reinstalling software. Also keep an eye on system stability.
  • I am not a professional reverse engineer. If anything is incorrect, please point it out—thank you!
  • If this article helps you, please recommend it to anyone who might need it—thanks!
Windows Downgrade Perfect Solution: Keep your data and downgrade by the official installer
https://blog.nanami.tech/en/archives/152/
Author Madobi Nanami
Publish Time 2025-12-01
License CC BY-NC-SA 4.0
Post a new comment