|
| 1 | +@echo off |
| 2 | +setlocal enabledelayedexpansion |
| 3 | + |
| 4 | +REM Check if the live411beta folder exists |
| 5 | +if not exist live411beta\ ( |
| 6 | + REM Give some sort of error here and give exit option (press any key to close) |
| 7 | + echo Error: Unable to find live411beta folder. Please make sure it is in the same directory as this file. |
| 8 | + echo Closing on button press... |
| 9 | + pause |
| 10 | + exit /b |
| 11 | +) |
| 12 | + |
| 13 | +REM Copy all files from live411beta file into base folder |
| 14 | +xcopy /s/y "%~dp0\live411beta\" "%~dp0\" |
| 15 | +echo Copied files from live411beta folder into current folder. |
| 16 | + |
| 17 | +REM Run the live411_install.bat file |
| 18 | +call "live411_install.bat" |
| 19 | +echo Installed 4.11 beta Amarec Live. |
| 20 | + |
| 21 | +REM Edit the lines in register.bat from 'regsvr32 "%~dp0\AmAudioCapture.ax"' and 'regsvr32 "%~dp0\AmVideoCapture.ax"' to 'regsvr32 "%~dp0\AmAudioCapture64.ax"' and 'regsvr32 "%~dp0\AmVideoCapture64.ax"' |
| 22 | + |
| 23 | +set "textFile=register.bat" |
| 24 | + |
| 25 | +for /f "delims=" %%i in ('type "%textFile%" ^& break ^> "%textFile%" ') do ( |
| 26 | + set "line=%%i" |
| 27 | + setlocal enabledelayedexpansion |
| 28 | + >>"%textFile%" echo(!line:AmAudioCapture.ax=AmAudioCapture64.ax! |
| 29 | + endlocal |
| 30 | +) |
| 31 | + |
| 32 | +for /f "delims=" %%i in ('type "%textFile%" ^& break ^> "%textFile%" ') do ( |
| 33 | + set "line=%%i" |
| 34 | + setlocal enabledelayedexpansion |
| 35 | + >>"%textFile%" echo(!line:AmVideoCapture.ax=AmVideoCapture64.ax! |
| 36 | + endlocal |
| 37 | +) |
| 38 | + |
| 39 | +echo Edited register.bat |
| 40 | + |
| 41 | +REM Run the register.bat file |
| 42 | +call "register.bat" |
| 43 | +echo Installed 64-bit compatibility files. |
| 44 | + |
| 45 | +REM Delete live411beta folder |
| 46 | +rmdir /s /q "%~dp0\live411beta" |
| 47 | + |
| 48 | +echo Removed the live411beta folder. |
| 49 | +echo 64-bit amarec compatibility successfully installed. |
| 50 | + |
| 51 | +pause |
0 commit comments