Guest User

NO-CD_PATCH.bat

a guest
Feb 24th, 2026
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. :: ---------------------------------------------------------
  2. :: README & USAGE INSTRUCTIONS
  3. :: This script enables a "Full Install" by updating the
  4. :: Windows Registry, removing the need for the physical CDs.
  5. ::
  6. :: INSTRUCTIONS:
  7. :: 1. Copy folders '0', '1', '2', '3', and '4' from the discs
  8. :: into the folder where you want to install the game.
  9. :: Note: Folder '0' is identical on both discs; you only
  10. :: need to copy it once.
  11. ::
  12. :: 2. If you already ran "installation.exe" from the disc,
  13. :: simply move the missing folders from the CD to your
  14. :: install directory. No need to overwrite files.
  15. ::
  16. :: WHY IS THIS NECESSARY?
  17. :: The original installer intentionally skips many files to
  18. :: force a Disc Check. You must move them manually for this
  19. :: No-CD fix to work.
  20. ::
  21. :: PLACEMENT:
  22. :: This .bat MUST be executed from the main installation
  23. :: folder, NOT from within any of the numbered subfolders.
  24. ::
  25. :: Correct Example: C:\Games\Studio Mebius\MEBINYA\NO-CD_PATCH.bat
  26. :: Wrong Example: C:\Games\Studio Mebius\MEBINYA\0\NO-CD_PATCH.bat
  27. :: ---------------------------------------------------------
  28. @echo off
  29. :: Get the current folder where the .bat is executed
  30. SET "BASE_DIR=%~dp0"
  31.  
  32. :: Remove the trailing backslash for clean paths
  33. IF "%BASE_DIR:~-1%"=="\" SET "BASE_DIR=%BASE_DIR:~0,-1%"
  34.  
  35. echo ============================================
  36. echo Mebinya! Full Repack Registry Fixer
  37. echo ============================================
  38. echo.
  39. echo Detected Path: "%BASE_DIR%"
  40. echo.
  41.  
  42. :: Define the main keys
  43. SET "ROOT_KEY=HKEY_CURRENT_USER\SOFTWARE\Studio Mebius\MEBINYA"
  44.  
  45. :: 1. Create the root folder keys
  46. echo Creating core registry paths...
  47. reg add "%ROOT_KEY%" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
  48. reg add "%ROOT_KEY%" /v "Path" /t REG_SZ /d "%BASE_DIR%" /f
  49.  
  50. :: 2. Configure Sub-Key 0 (Main Game Flags + Base CDPath)
  51. echo Configuring Sub-Key 0...
  52. reg add "%ROOT_KEY%\0" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
  53. reg add "%ROOT_KEY%\0" /v "Install BGM" /t REG_DWORD /d 1 /f
  54. reg add "%ROOT_KEY%\0" /v "Install KOE" /t REG_DWORD /d 1 /f
  55. reg add "%ROOT_KEY%\0" /v "Install GAME0" /t REG_DWORD /d 1 /f
  56. reg add "%ROOT_KEY%\0" /v "Install GAME1" /t REG_DWORD /d 1 /f
  57. reg add "%ROOT_KEY%\0" /v "Install GAME2" /t REG_DWORD /d 1 /f
  58. reg add "%ROOT_KEY%\0" /v "Install GAME3" /t REG_DWORD /d 1 /f
  59. reg add "%ROOT_KEY%\0" /v "Install GAME4" /t REG_DWORD /d 1 /f
  60.  
  61. :: 3. Configure Sub-Keys 1 through 4 (Media Flags + Base CDPath)
  62. echo Configuring Sub-Keys 1 through 4...
  63. for %%i in (1 2 3 4) do (
  64. reg add "%ROOT_KEY%\%%i" /v "CDPath" /t REG_SZ /d "%BASE_DIR%" /f
  65. reg add "%ROOT_KEY%\%%i" /v "Install BGM" /t REG_DWORD /d 1 /f
  66. reg add "%ROOT_KEY%\%%i" /v "Install KOE" /t REG_DWORD /d 1 /f
  67. )
  68.  
  69. echo.
  70. echo [SUCCESS] Registry structure for Repack applied.
  71. echo [SUCCESS] All paths set to base directory.
  72. echo.
  73. echo Press any key to exit...
  74. pause >nul
Advertisement
Add Comment
Please, Sign In to add comment