Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
20th May 2015, 19:44 | #21 | Link |
random user
Join Date: May 2014
Location: #Neuland
Posts: 116
|
Let me join the party of posting batch scripts
A half year or so ago I modified Groucho's script because I had some issues (I cant remember right now which kind of). It ended in a complete rewrite... My script works a bit different as the former script: - must be started with admin rights, because it copy the .dlls to system32 or syswow64 - write direct to registry with reg.exe - has uninstall option I was never 100% sure about all of the registry keys but it worked for me. (tested on Win7 x64 and NT5.2 x64) Code:
::batch script for fast switch of avisynth versions ::initial idea and work by Groucho2004 -> http://forum.doom9.org/showthread.php?p=1677076#post1677076 ::modified by jones1913 @echo off setlocal fsutil dirty query %systemdrive% > nul if errorlevel 1 goto :noAdmin color 4f ::The source directory with the various avisynth versions is set to the location of this batch file. set AVS_SRC_DIR=%~dp0 if /i %PROCESSOR_ARCHITECTURE%==x86 if not defined PROCESSOR_ARCHITEW6432 set winarch=x32 if [%1]==[] goto :menu if /i %1==AVS257 (set avs=%1) & goto :install if /i %1==AVS258 (set avs=%1) & goto :install if /i %1==AVS260 (set avs=%1) & goto :install if /i %1==AVS260_ICL (set avs=%1) & goto :install if /i %1==AVS260_MT (set avs=%1) & goto :install if /i %1==AVSPLUS_x86 (set avs=%1) & (set avspl=true) & goto :install if /i %1==AVSPLUS_x64 (set avs=%1) & (set avspl=true) & goto :install echo. echo Unknown parameter. :menu echo. echo Which AviSynth version you want to install? echo (Or call this batch file next time directly with one of the below listed parameters.) echo. echo 1 = AVS257 echo 2 = AVS258 echo 3 = AVS260 echo 4 = AVS260_ICL echo 5 = AVS260_MT echo 6 = AVSPLUS_x86 echo 7 = AVSPLUS_x64 * echo. echo 8 = Uninstall AVS x86 echo 9 = Uninstall AVS x64 echo. echo *) AVS+ x64 can be installed in addition to one of the other versions. echo. set no= set /p no=[1-9] (leave blank and [Enter] for exit): if [%no%]==[] goto :cancel if %no%==1 set avs=AVS257 if %no%==2 set avs=AVS258 if %no%==3 set avs=AVS260 if %no%==4 set avs=AVS260_ICL if %no%==5 set avs=AVS260_MT if %no%==6 (set avs=AVSPLUS_x86) & set avspl=true if %no%==7 (set avs=AVSPLUS_x64) & set avspl=true if %no%==8 (set avs=AVSx86) & goto :uninstall if %no%==9 (set avs=AVSx64) & goto :uninstall echo. if [%avs%]==[] (echo Invalid input... goto :menu) :install echo Installing %avs%... echo. if defined winarch ( echo setup for 32bit windows system... echo. if /i %avs%==AVSPLUS_x64 ( echo Attempt to install x64 AVS on x32 Windows. goto :cancel ) echo copying %avs% files to "%WINDIR%\System32"... copy /y "%AVS_SRC_DIR%%avs%\avisynth.dll" "%WINDIR%\System32" copy /y "%AVS_SRC_DIR%%avs%\devil.dll" "%WINDIR%\System32" if errorlevel 1 ( echo Failed to copy files to "%WINDIR%\System32" goto :error ) echo. echo reg add "HKLM\SOFTWARE\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" reg add "HKLM\SOFTWARE\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" /f if errorlevel 1 ( echo Error on importing registry keys! goto :error ) call :regWin ) else ( echo setup for 64bit windows system... echo. if /i %avs%==AVSPLUS_x64 ( echo copying %avs% files to "%WINDIR%\System32"... copy /y "%AVS_SRC_DIR%%avs%\avisynth.dll" "%WINDIR%\System32" copy /y "%AVS_SRC_DIR%%avs%\devil.dll" "%WINDIR%\System32" if errorlevel 1 ( echo Failed to copy files to "%WINDIR%\System32" goto :error ) echo. echo reg add "HKLM\SOFTWARE\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" reg add "HKLM\SOFTWARE\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" /f if errorlevel 1 ( echo Error on importing registry keys! goto :error ) call :regWin ) else ( echo copying %avs% files to "%WINDIR%\SysWow64"... echo copy /y "%AVS_SRC_DIR%%avs%\avisynth.dll" "%WINDIR%\SysWow64" copy /y "%AVS_SRC_DIR%%avs%\avisynth.dll" "%WINDIR%\SysWow64" copy /y "%AVS_SRC_DIR%%avs%\devil.dll" "%WINDIR%\SysWow64" if errorlevel 1 ( echo Failed to copy files to "%WINDIR%\SysWow64" goto :error ) echo. echo reg add "HKLM\SOFTWARE\Wow6432Node\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" reg add "HKLM\SOFTWARE\Wow6432Node\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" /f if errorlevel 1 ( echo Error on importing registry keys! goto :error ) call :regWow64 ) ) goto :end :regWin echo. echo adding more registry entries... reg add "HKLM\SOFTWARE\Classes\AVIFile\Extensions\AVS" /ve /d "{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /ve /d "AviSynth" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}\InProcServer32" /ve /d "AviSynth.dll" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}\InProcServer32" /v "ThreadingModel" /d "Apartment" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\Media Type\Extensions\.avs" /v "Source Filter" /d "{D3588AB0-0781-11CE-B03A-0020AF0BA770}" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\.avs" /ve /d "avsfile" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\.avsi" /ve /d "avs_auto_file" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avsfile" /ve /d "AviSynth Script" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avsfile\DefaultIcon" /ve /d "%WINDIR%\System32\AviSynth.dll,0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avs_auto_file" /ve /d "AviSynth Autoload Script" /f >nul 2>&1 if defined avspl (reg add "HKLM\SOFTWARE\Classes\avs_auto_file\DefaultIcon" /ve /d "%WINDIR%\System32\AviSynth.dll,1" /f ) else reg add "HKLM\SOFTWARE\Classes\avs_auto_file\DefaultIcon" /ve /d "%WINDIR%\System32\AviSynth.dll,0" /f goto :eof :regWow64 echo. echo adding more registry entries (wow64 mode)... reg add "HKLM\SOFTWARE\Classes\AVIFile\Extensions\AVS" /ve /d "{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /ve /d "AviSynth" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}\InProcServer32" /ve /d "AviSynth.dll" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}\InProcServer32" /v "ThreadingModel" /d "Apartment" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Classes\Media Type\Extensions\.avs" /v "Source Filter" /d "{D3588AB0-0781-11CE-B03A-0020AF0BA770}" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\.avs" /ve /d "avsfile" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\.avsi" /ve /d "avs_auto_file" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avsfile" /ve /d "AviSynth Script" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avsfile\DefaultIcon" /ve /d "%WINDIR%\SysWow64\AviSynth.dll,0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Classes\avs_auto_file" /ve /d "AviSynth Autoload Script" /f >nul 2>&1 if defined avspl (reg add "HKLM\SOFTWARE\Classes\avs_auto_file\DefaultIcon" /ve /d "%WINDIR%\SysWow64\AviSynth.dll,1" /f ) else reg add "HKLM\SOFTWARE\Classes\avs_auto_file\DefaultIcon" /ve /d "%WINDIR%\SysWow64\AviSynth.dll,0" /f goto :eof :uninstall echo. echo Remove %avs% .dll and registry entries from this system? set /p rm=[y/n]: if /i not [%rm%]==[y] goto :cancel echo. if defined winarch ( if /i %avs%==AVSx64 ( echo Attempt to remove x64 AVS from x32 Windows. goto :cancel ) echo removing %avs% files from "%WINDIR%\System32"... del "%WINDIR%\System32\avisynth.dll" del "%WINDIR%\System32\devil.dll" call :unregWin all ) else ( if /i %avs%==AVSx64 ( echo removing %avs% files from "%WINDIR%\System32"... del "%WINDIR%\System32\devil.dll" del "%WINDIR%\System32\avisynth.dll" if exist "%WINDIR%\SysWow64\avisynth.dll" (call :unregWin) else ( call :unregWin all ) ) else ( echo removing %avs% files from "%WINDIR%\SysWow64"... del "%WINDIR%\SysWow64\avisynth.dll" del "%WINDIR%\SysWow64\devil.dll" if exist "%WINDIR%\System32\avisynth.dll" (call :unregWow64) else ( call :unregWow64 all ) ) ) goto :end :unregWin echo. echo removing registry entries... reg delete "HKLM\SOFTWARE\Avisynth" /f reg delete "HKLM\SOFTWARE\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /f reg delete "HKLM\SOFTWARE\Classes\Media Type\Extensions\.avs" /f if [%1]==[all] call :unregAll goto :eof :unregWow64 echo. echo removing registry entries (wow64 mode)... reg delete "HKLM\SOFTWARE\Wow6432Node\Avisynth" /f reg delete "HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{E6D6B700-124D-11D4-86F3-DB80AFD98778}" /f reg delete "HKLM\SOFTWARE\Wow6432Node\Classes\Media Type\Extensions\.avs" /f if [%1]==[all] call :unregAll goto :eof :unregAll echo. echo removing more avs registry entries... reg delete "HKLM\SOFTWARE\Classes\AVIFile\Extensions\AVS" /f reg delete "HKLM\SOFTWARE\Classes\.avs" /f reg delete "HKLM\SOFTWARE\Classes\.avsi" /f reg delete "HKLM\SOFTWARE\Classes\avsfile" /f reg delete "HKLM\SOFTWARE\Classes\avs_auto_file" /f goto :eof :noAdmin echo This script must run with elevated privileges, so: echo. echo a) right click on it, chose "run as administrator" echo b) or start it from within a root cmd window :error echo. echo something went seriously wrong... :cancel echo. echo canceled... :end endlocal echo. pause Feel free to use parts of it or leave a comment.
__________________
BeHappy Audio Transcoder > <Doom9 forum> <Gleitz forum> <GitHub> MP4.tool GUI for MP4Box & L-SMASH muxer > https://www.mediafire.com/folder/3i6y6cbkyhblm/MP4.tool |
20th May 2015, 21:17 | #22 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
__________________
Groucho's Avisynth Stuff |
21st May 2015, 11:32 | #23 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
|
There is a difference between Groucho's script and the one by jones1913 regarding the CLSID entries.
While Groucho generally uses HKEY_CLASSES_ROOT\CLSID\ (with one exception for the 64bit entries), jones1913 always uses HKLM\SOFTWARE\Classes\CLSID\ or HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\ I know that these two keys point to the same values, but is one method preferable over the other one? Cheers manolito |
22nd May 2015, 00:00 | #24 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Dont think so, the shorter one is just easier to find and probably the only reason for it.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
22nd May 2015, 01:53 | #25 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Anyway, I just use the keys that the standard Avisynth installer writes which are also summarized by IanB in an old thread here on Doom9.
__________________
Groucho's Avisynth Stuff |
|
11th August 2015, 11:04 | #26 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Thanks for your new version with last AviSynth 2.6
Using your setavs.bat make a temporal $avsreg$.reg to modify the register with keys than don't match (I don't have thats keys) with my actual reg keys Quote:
I changed between versions, without execute $avsreg$.reg, and all seems OK. Your Avisynth Info Tool 1.3.1 inform always ok. Do you know for what the differences? I don't want duplicate keys than don't exist in my register.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 11th August 2015 at 11:17. Reason: correct info |
|
11th August 2015, 14:13 | #28 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Yep, seems the jones1913 batch is coherent with my registry.
BTW, like I don't want uninstall AviSynth, only change between versions, and the registry entries are always the same for my OS 64 bits, can change without modify the registry. Maybe only reg add "HKLM\SOFTWARE\Wow6432Node\Avisynth" /v "PluginDir2_5" /d "%AVS_SRC_DIR%%avs%\plugins" /f if need that. By the moment I have only a few common plugins in PluginDir2_5 and use LoadPlugin() for different ones.
__________________
BeHappy, AviSynth audio transcoder. |
5th September 2015, 03:51 | #29 | Link | ||||||
47.952fps@71.928Hz
Join Date: Mar 2011
Posts: 940
|
Quote:
Finally looked into this whole thing. Win7 (x64) SP1 Tried 3 versions: 260_ICL10 260_MT PLUS32 They all copied/registered files and worked with AVSmeter! Quote:
Quote:
Quote:
Quote:
Quote:
I was able to load it and scan through it using: AVS258 AVS260 AVS260_ICL AVS260_MT AVSPLUS_x86 So, finally sat down and gave this a good look over. Now it's time to play with absolutely everything. And, then, maybe for New Years Resolution, throw in Vapoursynth. Thanks for all the work, guys! Only thing left is to look how to add "SVP_258" AviSynth 2.5.8 (SVP edition) https://www.svp-team.com/wiki/Download Should be a walk in the park. maybe.
__________________
Win10 (x64) build 19041 NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4) NTSC | DVD: R1 | BD: A AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
|
||||||
6th September 2015, 13:06 | #31 | Link | |||
random user
Join Date: May 2014
Location: #Neuland
Posts: 116
|
Quote:
Quote:
Quote:
__________________
BeHappy Audio Transcoder > <Doom9 forum> <Gleitz forum> <GitHub> MP4.tool GUI for MP4Box & L-SMASH muxer > https://www.mediafire.com/folder/3i6y6cbkyhblm/MP4.tool |
|||
9th September 2015, 03:13 | #33 | Link |
Registered User
Join Date: Nov 2007
Posts: 185
|
I'd always been led to believe that Intel builds were of benefit only to users of Intel CPUs, AMD users would see no performance improvements. Happily, your ICL builds of Avisynth have most definitely shown that to be false. Thanks!
|
9th September 2015, 08:01 | #34 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
These issues only arise when using the automatic CPU dispatcher with the Intel compiler. Compiling for a specific instruction set which I did for avisynth.dll will bypass it. |
|
21st September 2015, 22:37 | #36 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
|
Does that mean that it will not run on non-SSE2 CPUs any longer?
Cheers manolito //EDIT// Just saw the answer in the other thread, too bad... Last edited by manolito; 21st September 2015 at 22:40. |
14th October 2015, 20:32 | #39 | Link | |
Registered User
Join Date: Nov 2007
Posts: 185
|
Quote:
Checking back today I noticed the file name of "AvisynthRepository_2015_09_22". An apparent change of one day. Any change worthy of mention? Thanks a lot for this. |
|
14th October 2015, 21:25 | #40 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
In short - yes, you should re-download the file or just replace the ICL avisynth.dll with this one. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|