Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: ---------------------------------------------------------
- :: README & USAGE INSTRUCTIONS
- :: This script enables a "Full Install" by updating the
- :: Windows Registry, removing the need for the physical CDs.
- ::
- :: INSTRUCTIONS:
- :: 1. Copy folders '0', '1', '2', '3', and '4' from the discs
- :: into the folder where you want to install the game.
- :: Note: Folder '0' is identical on both discs; you only
- :: need to copy it once.
- ::
- :: 2. If you already ran "installation.exe" from the disc,
- :: simply move the missing folders from the CD to your
- :: install directory. No need to overwrite files.
- ::
- :: WHY IS THIS NECESSARY?
- :: The original installer intentionally skips many files to
- :: force a Disc Check. You must move them manually for this
- :: No-CD fix to work.
- ::
- :: PLACEMENT:
- :: This .bat MUST be executed from the main installation
- :: folder, NOT from within any of the numbered subfolders.
- ::
- :: Correct Example: C:\Games\Studio Mebius\MEBINYA\NO-CD_PATCH.bat
- :: Wrong Example: C:\Games\Studio Mebius\MEBINYA\0\NO-CD_PATCH.bat
- :: ---------------------------------------------------------
- @echo off
- :: Get the current folder where the .bat is executed
- SET "BASE_DIR=%~dp0"
- :: Remove the trailing backslash for clean paths
- IF "%BASE_DIR:~-1%"=="\" SET "BASE_DIR=%BASE_DIR:~0,-1%"
- echo ============================================
- echo Mebinya! Full Repack Registry Fixer
- echo ============================================
- echo.
- echo Detected Path: "%BASE_DIR%"
- echo.
- :: Define the main keys
- SET "ROOT_KEY=HKEY_CURRENT_USER\SOFTWARE\Studio Mebius\MEBINYA"
- :: 1. Create the root folder keys
- echo Creating core registry paths...
- reg add "%ROOT_KEY%" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
- reg add "%ROOT_KEY%" /v "Path" /t REG_SZ /d "%BASE_DIR%" /f
- :: 2. Configure Sub-Key 0 (Main Game Flags + Base CDPath)
- echo Configuring Sub-Key 0...
- reg add "%ROOT_KEY%\0" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
- reg add "%ROOT_KEY%\0" /v "Install BGM" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install KOE" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install GAME0" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install GAME1" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install GAME2" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install GAME3" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\0" /v "Install GAME4" /t REG_DWORD /d 1 /f
- :: 3. Configure Sub-Keys 1 through 4 (Media Flags + Base CDPath)
- echo Configuring Sub-Keys 1 through 4...
- for %%i in (1 2 3 4) do (
- reg add "%ROOT_KEY%\%%i" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
- reg add "%ROOT_KEY%\%%i" /v "Install BGM" /t REG_DWORD /d 1 /f
- reg add "%ROOT_KEY%\%%i" /v "Install KOE" /t REG_DWORD /d 1 /f
- )
- echo.
- echo [SUCCESS] Registry structure for Repack applied.
- echo [SUCCESS] All paths set to base directory.
- echo.
- echo Press any key to exit...
- pause >nul
Advertisement
Add Comment
Please, Sign In to add comment