REQUIRES WINDOWS 10 An install wrapper for Lord of the Rings: Battle for Middle-Earth 2 .iso files, it'll mount the .iso files, run the installer for you and apply the no cd crack so that you don't need to re-mount the .iso files everytime you run the game.
This project does not include any game files or serial keys. You'll need to provide those yourself to use this.
This is an install wrapper for the .iso files of Lord of the Rings: Battle for Middle-Earth 2 and it's expansion. It's written in C, except for the PowerShell scripts that to mount the .iso files (natively, which is the part that requires win10) and then runs the game installer on the disk. I've also included a script that applies to no cd crack so that the .iso doesn't need to be mounted everytime you want to play.
I know the entire project seems a little unecessary, but I made it for some friends of mine that aren't tech-savvy enough to figure out how to mount .iso files, etc.
It would make more sense to have written the C portion of this in something like Python. If I ever need to re-purpose this for any other .iso files then I might rewrite it in Python and make it less usecase specific.
For information on the game's system requirements, see docs/requirements.txt
Windows 10 I insisted on using the native mounting feature added in Windows 10 because I like to try and stay minimal (I also thought it was pretty cool that I was able to do this in PowerShell). Obviously it also needs to be Windows because the .iso files have windows executable installers on and install windows versions of the game. I don't think Linux versions exist, but if you want to play it on Linux then this is useless because you'll need to do something with the game files (like run it in WINE or something).
For information on the game's system requirements, see docs/instructions.txt
- Add the Battle for Middle-Earth 2 .iso to
game_files/bfme2/
- Add the Rise of the Witch-King .iso to
game_files/rotwk/
- Run
bfme2-installer.exe
as an Administrator
What bfme2-installer does:
- Install
- Mounts the respective .iso (using Windows 10's native mounting feature)
- Runs the installer on the disc
- Dismounts the respective .iso file
- Apply crack
- Checks if the game is installed via the Registry (HKLM:\SOFTWARE\WOW6432Node\Electronic Arts*) and data files directory ($env:APPDATA+"*")
- Copies the crack file (no-cd crack) to the install directory
- Sets the options.ini file (found in the data files directory); this stops the game crashing on startup and sets the default resolution to 1920x1080.
Compiling is really simple, so I didn't bother with a Makefile or anything.
gcc src\bfme2-installer.c src\libs\* -o bfme2-installer.exe
- Done!
If you want to set an icon for the executable (as I have for the current release):
windres src\bfme2-installer.rc -o src\bfme2-installer.o
gcc src\bfme2-installer.c src\libs\* src\bfme2-installer.o -o bfme2-installer.exe
- Done!