From 6fc303326b7206fe8bcccdbe525609047bd3bfbf Mon Sep 17 00:00:00 2001 From: breadcat Date: Wed, 17 Jun 2020 16:15:49 +0100 Subject: Add support for win32calc, if found --- 3-registry.bat | 3 +++ 1 file changed, 3 insertions(+) (limited to '3-registry.bat') diff --git a/3-registry.bat b/3-registry.bat index 2811b2b..4453cf1 100644 --- a/3-registry.bat +++ b/3-registry.bat @@ -40,6 +40,9 @@ reg add "HKCU\Software\Classes\.jpeg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Ti reg add "HKCU\Software\Classes\.jpg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f reg add "HKCU\Software\Classes\.png" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f reg add "HKCU\Software\Classes\.tiff" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f +rem support win32calc if exists +if exist %windir%\System32\win32calc.exe reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\calc.exe" /v "Debugger" /t REG_SZ /d "\"%SystemRoot%\System32\win32calc.exe\"" /f +if exist %windir%\System32\win32calc.exe reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\calc.exe" /v "Debugger" /t REG_SZ /d "\"%SystemRoot%\System32\win32calc.exe\"" /f rem notepad file associations for %%x in (cfg conf cpp cue go json md nfo nfo-orig patch php sh srt toml yml) do reg add "HKCR\.%%x" /ve /t REG_SZ /d "txtfile" /f rem disable various services -- cgit v1.2.3