├── psexec.exe ├── screenshot.png ├── snippet.txt ├── LICENSE ├── README.md └── v4w-patcher.bat /psexec.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metaspook/ViPER4Windows-Patcher/HEAD/psexec.exe -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metaspook/ViPER4Windows-Patcher/HEAD/screenshot.png -------------------------------------------------------------------------------- /snippet.txt: -------------------------------------------------------------------------------- 1 | :: Registry entries 2 | :: ---------------- 3 | ::[-HKEY_CLASSES_ROOT\AudioEngine\AudioProcessingObjects] 4 | ::[HKEY_CLASSES_ROOT\AudioEngine\AudioProcessingObjects\{DA2FB532-3014-4B93-AD05-21B2C620F9C2}] 5 | ::"FriendlyName"="ViPER4Windows" 6 | ::"Copyright"="Copyright (C) 2013, vipercn.com" 7 | ::"MajorVersion"=dword:00000001 8 | ::"MinorVersion"=dword:00000000 9 | ::"Flags"=dword:0000000d 10 | ::"MinInputConnections"=dword:00000001 11 | ::"MaxInputConnections"=dword:00000001 12 | ::"MinOutputConnections"=dword:00000001 13 | ::"MaxOutputConnections"=dword:00000001 14 | ::"MaxInstances"=dword:ffffffff 15 | ::"NumAPOInterfaces"=dword:00000001 16 | ::"APOInterface0"="{FD7F2B29-24D0-4B5C-B177-592C39F9CA10}" -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017-2022 Metaspook 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 👨‍💻 ViPER4Windows-Patcher 2 | A patcher script for fix ViPER4Windows issues on Windows-10/11.
3 | 4 | >Requires: Windows-10/11 + PowerShell. 5 | 6 | ### 🕹️ Screenshot 7 | ![ Missing screenshot!](screenshot.png?raw=true) 8 | 9 | ### 🎈 Features 10 | * Fixes ViPER4Windows run as admin issue. 11 | * Fixes incompatibility issues. 12 | * Fixes registry entry issues. 13 | * Handy portable script, run from anywhere. 14 | * Integrated administrative privileges request. 15 | 16 | >Note: File 'psexec.exe' is part of Microsoft Sysinternals. 17 | 18 | ### 🎈 Change Log: 19 |
Click to collapse/fold.
20 | 21 | ``` 22 | * v2.1 - Add Windows 11 Support. 23 | - ViPER4Windows run as admin patch. 24 | - Major cosmetic improvements. 25 | * v2.0 - Major fixes and improved UI. 26 | - Fixed audio service name. @amorim 27 | - Added 'Restart Audio Service'. @NelsonGomesNeto 28 | * v1.1 - Improved Registry fix, admin request and UI. 29 | - Added 'Launch Configurator'. 30 | * v1.0 - Initial release. 31 | ``` 32 |
33 | 34 | ### 🎈 Contributors: 35 |
Click to collapse/fold.
36 | 37 | ![GitHub Contributors Image](https://contrib.rocks/image?repo=metaspook/ViPER4Windows-Patcher) 38 |
39 | -------------------------------------------------------------------------------- /v4w-patcher.bat: -------------------------------------------------------------------------------- 1 | :: ViPER4Windows Patcher. 2 | :: Version: 2.1 3 | :: Written by Metaspook 4 | :: License: 5 | :: Copyright (c) 2019-2022 Metaspook. 6 | :: 7 | @echo off 8 | 9 | :: 10 | :: REQUESTING ADMINISTRATIVE PRIVILEGES 11 | :: 12 | >nul 2>&1 reg query "HKU\S-1-5-19\Environment" 13 | if '%errorlevel%' NEQ '0' ( 14 | (echo.Set UAC = CreateObject^("Shell.Application"^)&echo.UAC.ShellExecute "%~s0", "", "", "runas", 1)>"%temp%\getadmin.vbs" 15 | "%temp%\getadmin.vbs" 16 | exit /B 17 | ) else ( >nul 2>&1 del "%temp%\getadmin.vbs" ) 18 | 19 | :: 20 | :: MAIN SCRIPT STARTS BELOW 21 | :: 22 | title "ViPER4Windows Patcher" 23 | color 60 24 | pushd "%~dp0" 25 | set APPVAR=2.1 26 | for /f "tokens=2*" %%X in ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\ViPER4Windows" /v ConfigPath') do set PAppDir=%%Y 27 | set AppDir=%PAppDir:\DriverComm=% 28 | set APOSubPath="AudioEngine\AudioProcessingObjects\{DA2FB532-3014-4B93-AD05-21B2C620F9C2}" 29 | set AppCompatFlagsLayers="SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" 30 | mode con: cols=46 lines=20 31 | 32 | :CHOICE_MENU 33 | call:BANNER 34 | echo +--[ OPTION MENU ]-----------+ 35 | echo ^| ^| 36 | echo ^| 1. Registry Patch. ^| 37 | echo ^| 2. Launch Configurator. ^| 38 | echo ^| 3. Restart Audio Service ^| 39 | echo ^| 0. Exit. ^| 40 | echo +----------------------------+ 41 | echo. 42 | echo # Close media players before option 3. 43 | echo # Type a number below and press Enter key. 44 | echo. 45 | set CMVAR= 46 | set /p "CMVAR=Enter Option: " 47 | if "%CMVAR%"=="0" exit 48 | if exist "%AppDir%\ViPER4WindowsCtrlPanel.exe" ( 49 | if "%CMVAR%"=="1" call:PATCH_REGISTRY 50 | if "%CMVAR%"=="2" call:LAUNCH_CONFIGURATOR 51 | if "%CMVAR%"=="3" ( 52 | call:BANNER 53 | call:RESTART_AUDIO_SERVICE 54 | ) 55 | ) else ( 56 | call:BANNER 57 | echo [FAIL!] ViPER4Windows isn't installed. 58 | >nul 2>&1 timeout /t 2 59 | goto:CHOICE_MENU 60 | ) 61 | 62 | :PATCH_REGISTRY 63 | call:BANNER 64 | if exist "%~dp0psexec.exe" ( 65 | >nul 2>&1 reg add "HKLM\%AppCompatFlagsLayers%" /v "%AppDir%\ViPER4WindowsCtrlPanel.exe" /t REG_SZ /d "RUNASADMIN" /f 66 | >nul 2>&1 reg add "HKCU\%AppCompatFlagsLayers%" /v "%AppDir%\ViPER4WindowsCtrlPanel.exe" /t REG_SZ /d "RUNASADMIN" /f 67 | for %%a in (HKLM\SOFTWARE\Classes HKCR) do ( 68 | >nul 2>&1 .\psexec.exe -i -d -s -accepteula -nobanner reg delete "%%a\AudioEngine\AudioProcessingObjects" /f 69 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "FriendlyName" /t REG_SZ /d "ViPER4Windows" /f 70 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "Copyright" /t REG_SZ /d "Copyright (C) 2013, vipercn.com" /f 71 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MajorVersion" /t REG_DWORD /d "1" /f 72 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MinorVersion" /t REG_DWORD /d "0" /f 73 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "Flags" /t REG_DWORD /d "13" /f 74 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MinInputConnections" /t REG_DWORD /d "1" /f 75 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MaxInputConnections" /t REG_DWORD /d "1" /f 76 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MinOutputConnections" /t REG_DWORD /d "1" /f 77 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MaxOutputConnections" /t REG_DWORD /d "1" /f 78 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "MaxInstances" /t REG_DWORD /d "4294967295" /f 79 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "NumAPOInterfaces" /t REG_DWORD /d "1" /f 80 | >nul 2>&1 reg add "%%a\%APOSubPath%" /v "APOInterface0" /t REG_SZ /d "{FD7F2B29-24D0-4B5C-B177-592C39F9CA10}" /f 81 | ) 82 | if %ERRORLEVEL% NEQ 0 ( 83 | call:BANNER 84 | echo [FAIL!] Registry patch not applied properly. 85 | >nul 2>&1 timeout /t 2 86 | goto:CHOICE_MENU 87 | ) else ( 88 | call:BANNER 89 | echo [DONE] Run as Admin patch applied. 90 | echo [DONE] Registry patch applied. 91 | call:RESTART_AUDIO_SERVICE 92 | ) 93 | ) else ( 94 | call:BANNER 95 | echo [FAIL!] File 'psexec.exe' is missing. 96 | >nul 2>&1 timeout /t 2 97 | goto:CHOICE_MENU 98 | ) 99 | 100 | :LAUNCH_CONFIGURATOR 101 | if exist "%AppDir%\Configurator.exe" ( 102 | start "" "%AppDir%\Configurator.exe" 103 | goto:CHOICE_MENU 104 | ) else ( 105 | call:BANNER 106 | echo [FAIL!] ViPER4Windows Configurator not found. 107 | >nul 2>&1 timeout /t 2 108 | goto:CHOICE_MENU 109 | ) 110 | 111 | :RESTART_AUDIO_SERVICE 112 | powershell -command "Restart-Service -Name Audiosrv -Confirm:$false" 113 | echo [DONE] Audio Service Restarted. 114 | >nul 2>&1 timeout /t 2 115 | goto:CHOICE_MENU 116 | 117 | :BANNER 118 | cls 119 | echo ______________ 120 | echo ViPER4Windows Patcher \__ 121 | echo \\ version %APPVAR% / \ 122 | echo \\_____________________\__/ 123 | echo.&echo. 124 | goto:eof 125 | --------------------------------------------------------------------------------