Quote:
Originally Posted by Groucho2004
The easiest way would be a batch file that replaces avisynth.dll and devil.dll.
If you are using auto-load, you'll also have to have 2 directories, one for 32 Bit and one for 64 Bit plugins and adjust the registry entry for the auto-load directory (this can also be done with the batch file).
Don't use the system32/syswow64 directories for the avisynth/devil DLLs, use a directory to which your PATH environment variable points.
|
Here's an example for those not so familiar with batch files:
Code:
@echo off
SET x86=e:\avisynth_src\x86
SET x64=e:\avisynth_src\x64
SET PlugDir_x86=e:\\avisynth_src\\x86\\plugins
SET PlugDir_x64=e:\\avisynth_src\\x64\\plugins
SET TargetDir=e:\apps\div
if "%1" == "32" (
copy/y "%x86%\avisynth.dll" "%TargetDir%"
copy/y "%x86%\system\devil.dll" "%TargetDir%"
echo REGEDIT4 > "%TEMP%\$plugins$.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Avisynth] >> "%TEMP%\$plugins$.reg"
echo "plugindir2_5"="%PlugDir_x86%" >> "%TEMP%\$plugins$.reg"
start/wait regedit -s "%TEMP%\$plugins$.reg"
del "%TEMP%\$plugins$.reg" > nul
)
if "%1" == "64" (
copy/y "%x64%\avisynth.dll" "%TargetDir%"
copy/y "%x64%\system\devil.dll" "%TargetDir%"
echo REGEDIT4 > "%TEMP%\$plugins$.reg"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Avisynth] >> "%TEMP%\$plugins$.reg"
echo "plugindir2_5"="%PlugDir_x64%" >> "%TEMP%\$plugins$.reg"
start/wait regedit -s "%TEMP%\$plugins$.reg"
del "%TEMP%\$plugins$.reg" > nul
)
The example assumes that you have downloaded the AVS+ 32 bit and 64 bit
binaries from
here, copied the structure to "e:\avisynth_src" and that the directory "e:\apps\div" is part of your "PATH" environment variable. You can then call the batch file with the parameters "32" or "64". Adjust the directories or add another Avisynth version as needed.
Finally, import
this reg file.