Skip to content
wolffbePublic

About

Fix for Harry Potter and the Order of the Phoenix on modern Windows

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Harry Potter and the Order of the Phoenix — Windows 10/11 Installer

PowerShell scripts that install EA's 2007 game Harry Potter and the Order of the Phoenix on modern Windows, where the original disc installer cannot run.

The problem

The disc's AutoRun installer is signed with an EA code-signing certificate that has since been revoked, so Windows 10/11 refuses to elevate it — "This app has been blocked for your protection" / "An administrator has blocked you from running this app". Install-HPOotP.ps1 bypasses it by extracting the game payloads directly and writing the same files, registry values, and shortcuts the installer would have.

The game ships on one DVD carrying both payloads:

  • 0compressed.zip: data3.big, data4.big, music.big, movies.big, the executable, gamepad maps
  • 1compressed.zip: data.big, data2.big

The disc also carries the runtimes the game needs that Windows 10/11 no longer ships — the Apr-2007 DirectX components (d3dx9_33.dll, xinput1_3.dll) — which the script installs from the disc's own Microsoft-signed redistributable. The VC++ 2005 runtime (msvcr80.dll) is fetched from Microsoft if missing.

Getting the game

These scripts contain no game files. You need a copy of the retail DVD you own. Disc images are archived here:

-Source may be a drive letter, a disc-root folder, an .iso, or a raw .bin/.cue image — the script mounts or converts as needed.

Usage

# Install from the DVD. Source can be an .iso, .bin/.cue, a mounted drive,
# or a folder:
powershell -ExecutionPolicy Bypass -File scripts\Install-HPOotP.ps1 -Source HPOOTP.iso

# ...or from a mounted disc:
powershell -ExecutionPolicy Bypass -File scripts\Install-HPOotP.ps1 -Source E:\

# Skip the runtime installs:
powershell -ExecutionPolicy Bypass -File scripts\Install-HPOotP.ps1 -Source E:\ -SkipRuntimes

# To revert everything:
powershell -ExecutionPolicy Bypass -File scripts\Uninstall-HPOotP.ps1 -RemoveFiles

The default install directory is C:\Program Files (x86)\Electronic Arts\Harry Potter and the Order of the Phoenix (override with -Dest).

If -Source is omitted, the script auto-detects a mounted disc carrying the payload.

Both scripts self-elevate (UAC prompt) because they write machine-wide registry keys and install runtimes.

What the scripts do

scripts/Install-HPOotP.ps1

  • Resolves the source (drive, folder, .iso, or .bin/.cue), mounting or converting disc images as needed.
  • Extracts 0compressed.zip and 1compressed.zip into the install folder.
  • Copies the loose support files (Support\, eauninstall.exe, icon).
  • Writes the game's registry entries (install dir, CD drive, locale, language) under HKLM\SOFTWARE\WOW6432Node\Electronic Arts\Harry Potter and the Order of the Phoenix — the key hp.exe reads.
  • Installs the Apr-2007 DirectX components from the disc's DirectX\DXSETUP.exe (silent) and the VC++ 2005 runtime from Microsoft, if missing.
  • Sets a high-DPI compatibility flag.
  • Creates Desktop and Start Menu shortcuts.

scripts/Uninstall-HPOotP.ps1

  • Removes the shortcuts, compatibility flag, and registry keys.
  • Deletes the install directory when run with -RemoveFiles.
  • Never touches saved games (%LOCALAPPDATA%\Electronic Arts\Harry Potter and the Order of the Phoenix\) or the shared runtimes.

Note: SecuROM DRM

The disc's hp.exe is protected with SecuROM v7. At launch it expects the original disc in a physical drive, and it typically refuses mounted disc images with a "CD/DVD emulation software detected" error, so even a correct install may not launch from an ISO.

These scripts install the disc's executable as-is and do not touch its copy protection. Getting the game to launch past SecuROM is up to you and out of scope for this repository — see the PCGamingWiki page.

Troubleshooting

  • "This app has been blocked for your protection" when running the disc's installer. Expected — that's the revoked-certificate problem these scripts exist to bypass. Don't run AutoRun.exe; run Install-HPOotP.ps1.
  • Game window is blurry. The high-DPI flag should handle this; if not, set hp.exe → Properties → Compatibility → Change high DPI settings → Override scaling by Application.
  • Settings and saves. In-game settings live in HKCU\Software\Electronic Arts\Harry Potter and the Order of the Phoenix; saves in %LOCALAPPDATA%\Electronic Arts\Harry Potter and the Order of the Phoenix\HPOOTP\.

Recommended additional fixes

The game only offers 640×480/800×600-class video options and no widescreen. Chip's (Fix Enhancers) excellent Harry-Potter-and-the-Order-of-the-Phoenix-PC-Fix — built on Elisha Riedlinger's wrapper base and ThirteenAG's d3d9 hook code — adds custom resolutions, aspect ratios, FOV control, and 60/120 fps support. This installer does not apply it; download the 60fps or 120fps build (match your monitor's refresh rate) from that repository's releases, set your resolution in its d3d9.ini, and drop d3d9.dll + d3d9.ini + fps.dll next to hp.exe in the install folder. Note: the wrapper hooks the game's 640×480 mode — if the resolution doesn't apply, set the in-game video resolution to 640×480 and restart.

Credits

  • Chip / Fix Enhancers for the D3D9 resolution/FPS fix linked above.
  • Compatibility research: PCGamingWiki.

Legal

This repository contains only scripts — no game files, binaries, or cracks. It is intended for owners of a legitimate copy of the game, to install software they have licensed on current hardware. It does not modify, remove, or circumvent the disc's copy protection.

License

MIT

About

Fix for Harry Potter and the Order of the Phoenix on modern Windows

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages